数据删除:

delete from 表名 [where 条件];

例如:

delete from student where stuid=7;

select *from student;

(数据库-MySQL)表-数据删除

(如果直接删除student表中所有数据)delete from student;(不需要制定条件,将一条一条的删除)

如果数据比较多,选用truncate更快捷、高效!

truncate table 表名: 先删除表,再重建表

请根据实际情况,选择不同的命令方式!

相关文章:

  • 2021-12-02
  • 2021-11-30
  • 2021-11-24
  • 2022-12-23
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-11-10
相关资源
相似解决方案