MySQL里的修改表数据的命令是什么啊?

来源:百度知道 编辑:UC知道 时间:2024/06/10 08:29:54
举个小例子看下。

修改表数据就是更新表了,用update 就ok了。

update 表名 set `字段名`='修改值' where 条件;

如果是修改表字段 alter table table_name column column_name new_name;

修改字段的数据?
update table_name set xx=yy where ...;不用where 就是全改成一样