首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-03-24 
这条简单的sql有什么错误?内详。。insertintohtml_data(cat,content,posted,title,link,description,images1

这条简单的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()的时候不需要加 ' '

热点排行