hbj111 发表于 2011-1-15 15:56:26

入库问题:出现错误

入库的结果:出现错误 kfy_coclass表1-错误信息:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1出现错误 表2-错误信息:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0, 0, '分类名称', 0, '3', 'flei', 1, 0, 0, 0, 0, 0, 0, 0, 0, '0', '0', '0', 0, 0' at line 1


执行的sql语句:INSERT INTO `kfy_coclass` (`pid`, `level`, `title`, `isframe`, `chids`, `dirname`, `coid`, `vieworder`, `trueorder`, `apmid`, `crpmid`, `rpmid`, `dpmid`, `allowsale`, `allowfsale`, `taxcp`, `awardcp`, `ftaxcp`, `clicks`, `archives`, `conditions`, `brand_img`, `name`, `phone`, `fax`, `address`, `hotline`, `introduction`, `website`, `meil`) VALUES
(0, 0, '分类名称', 0, '3', 'flei', 1, 0, 0, 0, 0, 0, 0, 0, 0, '0', '0', '0', 0, 0, '', 'userfiles/image/20110114/14215049da853b3b2d2896.gif#100#50', '公名', 'dianhua, 'zhuanzhen, '地zhi', 'rexian', '介绍', 'guan网', '邮件')


这个sql语句在phpmyadmin里面执行是正常的,但是为什么在入库模块里面无法执行呢?

hbj111 发表于 2011-1-15 16:12:46

灰常 的着急!!!

hbj111 发表于 2011-1-15 16:23:52

成功解决,哎,谢谢大家,是因为VALUES后面不能换行,呵呵。

live2learn 发表于 2011-1-16 00:24:18

呵呵,自己解决了最好。是SQL语句本身的问题。
页: [1]
查看完整版本: 入库问题:出现错误