UPDATE actor set first_name='WD' where first_name='ED'; UPDATE actor set last_name='CHASE' where first_name='GUINESS';
修改数据update(属于DML数据操作语言)
语法格式:
update 表名 set 字段名1=值1,字段名2=值2,字段名3=值3... where 条件;
注意:没有条件限制会导致所有数据全部更新。
UPDATE actor set first_name='WD' where first_name='ED'; UPDATE actor set last_name='CHASE' where first_name='GUINESS';
修改数据update(属于DML数据操作语言)
语法格式:
update 表名 set 字段名1=值1,字段名2=值2,字段名3=值3... where 条件;
注意:没有条件限制会导致所有数据全部更新。