Loading

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)多表删除

 

posted @ 2017-03-01 21:44  王树燚  阅读(684)  评论(0编辑  收藏  举报