oracle error, column not allowed here

后端 未结 2 2078
忘了有多久
忘了有多久 2021-02-19 04:48

I haven\'t used Oracle for a while so I\'m a bit rusty.

This is my table:

create table calendar(
username VARCHAR2(12),
content VARCHAR2(100),
dateConten         


        
相关标签:
2条回答
  • 2021-02-19 05:31

    Could it be because type is a Oracle reserved word ?

    Looks like this is not an issue. Read the comment by APC.

    I'm not deleting this answer because I find the comment useful.

    0 讨论(0)
  • 2021-02-19 05:40

    You need to put quotes round the varchar2 values

    Something like

    insert into calendar(username, 
                         content, 
                         dateContent, 
                         type) 
      values('chris', 
             'assignment due', 
             to_date('01-OCT-2010 13:00','DD-MON-YYYY HH24:MI'), 
             'PUB');
    
    0 讨论(0)
提交回复
热议问题