MySQL update (不可带 AND 关键字)
2017-12-11 18:11
127 查看
软件:SQLyog
update 表A set 字段1 = null AND
字段2 = null
执行成功后,发现表A的字段2 并没有更新,也无报错信息
最后发现,不能用 AND ,只能使用 , 即可。
update 表A set 字段1 = null ,字段2 = null (语法错误,好歹给我报个错。。。)
update 表A set 字段1 = null AND
字段2 = null
执行成功后,发现表A的字段2 并没有更新,也无报错信息
最后发现,不能用 AND ,只能使用 , 即可。
update 表A set 字段1 = null ,字段2 = null (语法错误,好歹给我报个错。。。)
相关文章推荐
- MySQL错误: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 easonjim
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- Mysql: Table name is specified twice, both as a target for UPDATE and as a separate source for data
- SPARK SQL - update MySql table using DataFrames and JDBC
- mysql解决ERROR Code 1175 : You are using safe update mode and you tried to update a tab
- Mysql Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses
- MySQL更新表时 Error Code: 1175. You are using safe update mode and you tried to update a table......
- Mysql带And关键字的多条件查询语句
- mysql 更新sql脚本: you are using safe update mode and you tried to update a table
- SQL Server 2008中利用merge into关键实现insert/update自动匹配(类似于MySQL中的For Update关键字)
- MySQL WorkbenchYou are using safe update mode and you tried to update a table without a WHERE that u
- Mysql Update语句 SET多字段时,使用 逗号连接和AND连接的区别
- MySQL执行update的时候报Error Code: 1175. You are using safe update mode and you tried to update......
- mysql 用非主键where语句报错Error Code: 1175.You are using safe update mode and you tried …
- Mysql -update - Error Code: 1175. You are using safe update mode and you tried to update a table wit
- mysql update between and
- MySQL语法(二 )--update--and 和 or--order by--delect(数据的操作)----drop(库的操作)
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K