MySQL 更新刪除產生錯誤1175

  • 109
  • 0

MySQL

Error Code :1175

 

當使用MySQL 刪除資料表時出現

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

執行下面的指令即可 

SET SQL_SAFE_UPDATES=0;//關閉

--------

SET SQL_SAFE_UPDATES=1;//結束後再開啟