-3

我计算了我的字段,检查了我的类型等。这是多行插入的第一个。为什么不这样:

(6972561736,'2013-02-06 04:29:17',85,'CONCORD',1000125,'First Last',92596384,'Airmia',30000166,11000.00,175697113.47,'21656:2,',,,92596384)

适合

Table xact    
==========    
refID, date, refTypeID, ownerName1, ownerID1, ownerName2, ownerID2, argName1, argID1, amount, balance, reason, taxReceiverID, taxAmount, charID

----------

refID            int(11) PK    
date             datetime    
refTypeID        bigint(20)    
ownerName1       varchar(45)    
ownerID1         int(11)    
ownerName2       varchar(45)    
ownerID2         int(11)    
argName1         varchar(45)    
argID1           int(11)    
amount           decimal(16,4)    
balance          decimal(16,4)    
reason           varchar(64)    
taxReceiverID    int(11)    
taxAmount        decimal(16,4)    
charID           int(11)

实际错误:

...在第 1 行的 ',92596384),(6972540458, '2013-02-06 04:23:30',34,'Istei Poyri',3018350,'First ' 附近使用的正确语法

6972540458 是下一条记录的开始...

完整的查询是8355个字符,所以我希望我已经给出了足够的数据。

4

4 回答 4

1

如果您没有列的数据,则添加null(如果允许)或默认值,而不是像

,,,92596384)
 ^-----------------here
于 2013-02-06T17:32:23.537 回答
0

如果没有看到完整的错误,我建议用,,,值替换null

,'21656:2,',null,null,92596384)
于 2013-02-06T17:31:57.513 回答
0

尝试在逗号之间传递NULL或空引号''而不是空引号。

(6972561736,'2013-02-06 04:29:17',85,'CONCORD',1000125,'First Last',92596384,'Airmia',30000166,11000.00,175697113.47,'21656:2,',NULL,NULL,92596384)

可能是因为在21656:2之后还有一个逗号。

(6972561736,'2013-02-06 04:29:17',85,'CONCORD',1000125,'First Last',92596384,'Airmia',30000166,11000.00,175697113.47,'21656:2',NULL,NULL,NULL,92596384)
于 2013-02-06T17:32:07.277 回答
0
check '21656:2' and you had added an extra column 

   (6972561736,'2013-02-06 04:29:17',85,'CONCORD',1000125,'First Last',92596384,'Airmia',30000166,11000.00,175697113.47,'21656:2',,,92596384)
于 2013-02-06T17:32:35.133 回答