Rumah >pangkalan data >tutorial mysql >Mysql 的insert null_MySQL
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