SQL无法插入数据

时间:2017-05-30 14:40:33

标签: sql oracle oracle-apex

我一直在尝试在数据库表中插入数据,但是我一直收到错误" ORA-01747:user.table.column,table.column或column specification"

我试图输入数据的表格;

Insert into lot (lot_ID,Reserve_Prices,Asking_prices,Selling_prices,Authorship,Origin,Age,"Size",Condition,Authenticity,Description,Sold,INVOICE_Invoice_ID,EVENT_Location_ID,SELLER_Seller_ID,AUCTIONEER_Auctioneer_ID,BIDDER_Bidder_ID,) values (001,1000,1000,1000,'unknown','unknown',200,'small','good','authentic','a small ceramic teacup','yes',001,001,001,001,001);
Insert into lot (lot_ID,Reserve_Prices,Asking_prices,Selling_prices,Authorship,Origin,Age,"Size",Condition,Authenticity,Description,Sold,INVOICE_Invoice_ID,EVENT_Location_ID,SELLER_Seller_ID,AUCTIONEER_Auctioneer_ID,BIDDER_Bidder_ID,) values (002,2500,2500,2500,'unknown','US',15,'large','good','unknown','senator ring','no',002,002,002,002,002);
Insert into lot (lot_ID,Reserve_Prices,Asking_prices,Selling_prices,Authorship,Origin,Age,"Size",Condition,Authenticity,Description,Sold,INVOICE_Invoice_ID,EVENT_Location_ID,SELLER_Seller_ID,AUCTIONEER_Auctioneer_ID,BIDDER_Bidder_ID,) values (003,100,100,100,'ships and Co.','London',200,'medium','poor','authentic','Ships and Co. medicine box','yes',003,003,003,003,003);

插入语句;

rotate

此代码适用于其他每个表,但在运行此代码时,我只会收到错误

2 个答案:

答案 0 :(得分:3)

在您的单个插入语句中,您在字段声明中的BIDDER_Bidder_ID之后还有一个额外的逗号,因此它正在查找未指定的其他字段。请尝试删除这些逗号。

答案 1 :(得分:0)

检查此BIDDER_Bidder_ID, 您在插入查询的末尾插入一个逗号。修复此删除最后一个逗号