当前位置:Gxlcms > mysql > Mysql的insertnull_MySQL

Mysql的insertnull_MySQL

时间:2021-07-01 10:21:17 帮助过:20人阅读

bitsCN.com 用工具导出的insert 语句有问题,导出的结果

insert to storehouseindtl(ENTERNO,WAREHOUSENO,STOREHOUSENO,INNO,INTP,INBILLNO,PRODENTERID,PRODLVL,BIGVARIETY,SMALLVARIETY,SPECIFICATION,PIECE,BOXES,PRICE,TOTALAMT,PRODDT,VALIDDT,ENDDT,INDT,KEEPERIDCARD,FROMWAREHOUSENO,FROMSTOREHOUSENO,FROMRETAILENTERNO,CURBOXES,BULKCARGOBILLNO,ISREPORT,REPORTTIME,INTABLETM,IDCARD,FILLDATE,BARCODEVALUE,MEMO) values('020011007210000002','1007210002','01','1201110000007','01','[NULL]','43102208','2','02','13','[NULL]','[NULL]','600','[NULL]','0.0','[NULL]','[NULL]','[NULL]','2012-01-02','[NULL]','[NULL]','[NULL]','[NULL]','600','[NULL]','00','[NULL]','14:49:13 ','[NULL]','2012-01-11','[NULL]','[NULL]')

报错误MySQL Error Code : 1064解决方案

仔细一看insert into 写错了,'[NULL]'改为NULL ,表中字段应该有 ‘’,最后要有;表结束

自己写的工具还是谨慎使用啊

摘自 敏兹的博客 bitsCN.com

人气教程排行