在Mysql5中,可以设置safe mode
例如在一个更新语句中
UPDATE table_name SET bDeleted=0;执行时会报错,提示如下:
You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”
原因是在safe mode下,要强制安全点,update语句中必须有where条件表达式,
要取消这个限制,可以:
即可