读书人

这条简单的sql有什么东东?内详。

发布时间: 2012-03-24 14:00:46 作者: rapoo

这条简单的sql有什么错误?内详。。
insert into html_data (cat,content,posted,title,link,description,images1,images2,images3,pubdate) values ( '中文 ', '中文 ', 'now() ', '中文 ', ' ', '中文 ', ' ', ' ', ' ', '2007-02-05 16:46:19 ')

Error Code : 1064
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 ' '2007-02-05 16: ' at line 1
(0 ms taken)

是个语法错误,奇怪了


[解决办法]
字段类型?另外now()的时候不需要加 ' '

读书人网 >Mysql

热点推荐