修改数据

语法:

update 表名 set 列名1 =值1,列名2=值2,…[where 条件];

update student set id=2 where name=‘xiaohong’;
数据库表中记录的基本操作之修改数据

注意:

1.如果不加任何条件,则会将表中所有记录全部修改。
update student set age=20;
数据库表中记录的基本操作之修改数据

相关文章:

  • 2021-09-22
  • 2019-08-10
  • 2021-04-25
  • 2021-10-13
  • 2021-12-30
  • 2021-12-01
  • 2021-12-29
  • 2021-12-07
猜你喜欢
  • 2021-06-01
  • 2021-11-24
  • 2021-06-13
  • 2021-07-08
  • 2022-01-05
  • 2021-11-07
  • 2021-07-30
相关资源
相似解决方案