1. 程式人生 > 資料庫 >MySQL基礎—修改語句

MySQL基礎—修改語句

修改單表記錄☆

語法:

update 表名

set 列=新值,列=新值,....

where 篩選條件

修改多表記錄

92語法

update 表1 別名 ,表2 別名

set 列=值,...

where 連線條件

and 篩選條件

 

99語法:

update 表1 別名

inner/left/right join 表2 別名

on 連線條件

set 列=值,...

where 篩選條件