mysql - sql字段包含逗号
PHP中文网
PHP中文网 2017-04-17 11:51:13
0
2
629

我做数据库插入时,碰到插入字段有逗号。执行提示语法错误,这个应该怎样处理??
其中某一条:
。。。(word , pos , from) VALUES ('word','noun,verb','word')'

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
左手右手慢动作

From is the keyword and should be written as `from`

Ty80

That doesn’t make sense. Can you post the SQL insertion statement?


I just tested it on MySQL and there is no problem if there are commas in the input.
Can you post your error message?


If you see that there is a problem with your field definition and it has been resolved, please close this issue.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!