數據庫表中記錄的基本操作之刪除數據

刪除數據庫 語法 delete from 表名 [where 條件]; delete from student where id=1; 注意: 1.如果不叫條件,則刪除表中所有的記錄。 delete from student; 2.如果要刪除所有記錄 1.delete from 表名; 不推薦使用。有多少條記錄就會執行多少次刪除操作 2.truncate table 表名; 先刪除表,然後再創建一
相關文章
相關標籤/搜索