用工具導出的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 ,表中字段應該有 ‘’,最後要有;表結束
自己寫的工具還是謹慎使用啊
摘自 敏茲的博客