原文: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