DELETE语句,用于删除表中的行
DELETE FORM 表名称 WHERE 列名称 = 值
例如:
1、删除student表中num=f20011120的数据
delete form student where num=f20011120;
2、如果where没有匹配到记录,表中数据不会删除;
3、如果不用where将删除整个表;
Truncate语句,删除表数据,保留表结构,不加where
truncate table 表名
Drop语句是完全删除,包括表结构
drop table 表名