MySQL 的更新操作update

1 更新操作(单表更新)

1)单表更新

update [low_priority] [ignore] table_reference set col_name1={expr1|default},col_name2={expr1|default} .....[where where_condition];

省略条件更新所有记录

设置条件将会更新指定记录

2)多表更新

2删除操作

1)单表删除

删除记录(单表删除)

delete from tb_name [where where_condition]

2)多表删除

原文地址:https://www.cnblogs.com/wangshuyi/p/6486499.html