数据库表中记录的基本操作之删除数据

删除数据库 语法 delete from 表名 [where 条件]; delete from student where id=1; 注意: 1.如果不叫条件,则删除表中所有的记录。 delete from student; 2.如果要删除所有记录 1.delete from 表名; 不推荐使用。有多少条记录就会执行多少次删除操作 2.truncate table 表名; 先删除表,然后再创建一
相关文章
相关标签/搜索