Home > Database > Mysql Tutorial > Mysql 的insert null_MySQL

Mysql 的insert null_MySQL

WBOY
Release: 2016-06-01 13:43:30
Original
1567 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template