我尝试按照以下说明插入 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: