在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