Error Code: 1175. You are using safe update mode and you tried to update a t

简介: 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/79677217 在安全模式下,只能根据主键来做修改,所以使用非主键修改,那么将要解除安全模式,然后再执行操作。
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/79677217

在安全模式下,只能根据主键来做修改,所以使用非主键修改,那么将要解除安全模式,然后再执行操作。

解除安全模式:

SET SQL_SAFE_UPDATES = 0;

恢复安全模式:

SET SQL_SAFE_UPDATES = 1;



相关文章
|
2月前
【开发专题_02】Executing an update/delete query
【开发专题_02】Executing an update/delete query
|
5月前
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘thinkphp.test‘ don‘t exsit
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘thinkphp.test‘ don‘t exsit
98 0
|
4月前
报错modify sync object Modify sync object Failed!
报错modify sync object Modify sync object Failed!
21 1
|
关系型数据库 MySQL 数据库
mysql插入表时报错ERROR 1067 (42000): Invalid default value for ‘end_time‘
mysql插入表时报错ERROR 1067 (42000): Invalid default value for ‘end_time‘
|
SQL 关系型数据库 MySQL
mysql Error Code: 1175. You are using safe update mode and you tried to update a table without ....
mysql Error Code: 1175. You are using safe update mode and you tried to update a table without ....
172 0
mysql Error Code: 1175. You are using safe update mode and you tried to update a table without ....
|
SQL PHP 数据库
PHP error:mysql_fetch_row() expects parameter 1 to be resource, boolean given 的错误
PHP error:mysql_fetch_row() expects parameter 1 to be resource, boolean given 的错误
137 0
|
SQL 关系型数据库 MySQL
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
620 0
[Err] 1294 - Invalid ON UPDATE clause for 'comment_time' column【详细解决办法】
2015-03-18 current note update logic in my task
2015-03-18 current note update logic in my task
72 0
2015-03-18 current note update logic in my task
SET UPDATE TASK LOCAL and commit session issue
SET UPDATE TASK LOCAL and commit session issue
115 0
SET UPDATE TASK LOCAL and commit session issue
An example to fix Generic stop set error status in tcode SMQ1
An example to fix Generic stop set error status in tcode SMQ1
112 0
An example to fix Generic stop set error status in tcode SMQ1

热门文章

最新文章