oracle error, column not allowed here

后端 未结 2 2269
忘了有多久
忘了有多久 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: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');
    

提交回复
热议问题