單表語法:delete [low_priority] [quick] [ignore] from tbl_name
[where where_definition]
[order by ...]
[limit row_count]
刪除所有行
可以在不刪除表的情況下刪除所有的行。這意味著表的結構、屬性和索引都是完整的:
delete from table_name或者:
delete * from table_name
更多詳細內容請查看:http://www.bKjia.c0m/database/110/fe4ad23aea66460c3531f081db0aaa89.htm
下在為刪除指定區別如0,30
delete from db limit 0,30
這裡基本我測試都通不過,delete from db limit 30 是可以測試通過的,不知道是不是我的版本問題
好像limit 後面是指刪除多少條記錄,並沒有給像select 中的起始記錄數樣!
然後如果我想limit 30 應該是刪除默認的,也就跟select * from db limit 0, 30差不多,
select from `sheet1` where 1 limit 0, 1
delete from `sheet1` where 1 limit 1