rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that

在mysql5中,能够设置safe mode,好比在一个更新语句中mysql

UPDATE table_name SET bDeleted=0;sql

执行时会错误,报:安全

You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”it

  缘由是在safe mode下,要强制安全点,update只能跟where了,table

要取消这个限制,能够:date

    SET SQL_SAFE_UPDATES=0;tab

便可co

相关文章
相关标签/搜索