(數據庫-MySQL)表-數據刪除

數據刪除: delete from 表名 [where 條件]; 例如: delete from student where stuid=7; select *from student; (如果直接刪除student表中所有數據)delete from student;(不需要制定條件,將一條一條的刪除) 如果數據比較多,選用truncate更快捷、高效! truncate table 表名: 先
相關文章
相關標籤/搜索