在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了, 
要取消这个限制,可以: 
    SET SQL_SAFE_UPDATES=0; 
即可 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-12-10
  • 2021-11-02
  • 2022-02-13
  • 2022-02-13
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2021-07-15
  • 2022-01-12
  • 2021-11-16
  • 2021-05-15
  • 2021-04-01
相关资源
相似解决方案