原文:MySQL錯誤:You are using safe update mode and you tried to update a table without a WHERE that uses a K

今日用MySQL Workbench進行數據庫的管理更新時,執行一個更新的語句碰到以下錯誤提示: Error Code: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column Error Code: . You are using safe upda ...

2018-07-03 13:52 0 1138 推薦指數:

查看詳情

mysql update時報錯You are using safe update mode

在使用mysql執行update的時候,如果不是用主鍵當where語句,會報如下錯誤,使用主鍵用於where語句中正常。 這是因為MySql運行在safe-updates模式下,該模式會導致非主鍵條件下無法執行update或者delete命令, 執行命令SET ...

Thu Aug 27 18:44:00 CST 2015 0 2537
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM