mysql-update修改
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
语法:update 表名 set 字段=新值 where 条件;(不写条件则更改所有内容,所以条件一定要确认好)
将表中id为3的记录name字段改为ritian
mysql>update test set name=‘ritian’ where id=3;
请我喝杯水


语法:update 表名 set 字段=新值 where 条件;(不写条件则更改所有内容,所以条件一定要确认好)
将表中id为3的记录name字段改为ritian
mysql>update test set name=‘ritian’ where id=3;