我尝试通过以下指令插入Oracle表:
insert into orders values (&order_id, &order_date, '&customer_id', &amount);
其中desc orders
如下:
Name Null Type
----------- ---- ---------
ORDER_ID NUMBER(4)
ORDER_DATE DATE
CUSTOMER_ID NUMBER(4)
AMOUNT NUMBER(5)
我尝试插入:order_id = 110,order_date = 12-march-2013,customer_id = 115和amount = 1100
这是我收到的错误消息:
Error starting at line 26 in command:
insert into orders values (110, 12-march-2013, 115, 1100)
Error at Command Line:26 Column:35
Error report:
SQL Error: ORA-00984: column not allowed here
00984. 00000 - "column not allowed here"
*Cause:
*Action:
答案 0 :(得分:1)
此代码有效
insert into orders values (200, '12-march-2013', 100, 1100)