1、在workbench中表格显示为readonly ,更新时提示Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect.
这是由于MySQL Workbench打开了安全更新模式
解决方法:SET SQL_SAFE_UPDATES = 0;
要执行的sql语句
SET SQL_SAFE_UPDATES = 1;
时间: 2024-10-27 18:40:08