9-Mysql-Ubuntu-数据表中数据的修改(二)

数据的修改(update)

(1)修改整个字段:

update 表名 set 字段1=值1,字段2=值2;

(2)修改字段部分数据

update 表名 set 字段1=值1,字段2=值2,... where 条件;

(3)修改具体某一条数据

update 表名 set 字段1=值1,字段2=值2,... where 条件(多以主键ID索引到具体的某一行数据);

猜你喜欢

转载自www.cnblogs.com/summer1019/p/11024563.html