Home  >  Article  >  Backend Development  >  sql执行语句有关问题

sql执行语句有关问题

WBOY
WBOYOriginal
2016-06-13 11:50:44967browse

sql执行语句问题
UPDATE emlog_user_disable SET activate = '0' WHERE user = 'xiong1995' 
请问 这样执行成功了 但是为什么 还是会报错?
 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 '1' at line 1
------解决方案--------------------
看一下 字段 activate的数据类型,如果是整形 就改成: 

UPDATE emlog_user_disable SET activate = 0 WHERE user = 'xiong1995' 
------解决方案--------------------
看上去没什么问题,完整的错误信息是什么。
desc emlog_user_disable; 看看
------解决方案--------------------
是不是用的冒号不对
------解决方案--------------------
你确认执行成功了?就一条语句的话,报错了就不应该执行成功的。难道你有多个语句?错误不是这里的吧。

Statement:
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
Previous article:php如何发送邮件?Next article:什么是phpmailer?