数据库表中记录的基本操作之修改数据

修改数据 语法: update 表名 set 列名1 =值1,列名2=值2,…[where 条件]; update student set id=2 where name=‘xiaohong’; 注意: 1.如果不加任何条件,则会将表中所有记录全部修改。 update student set age=20;
相关文章
相关标签/搜索