用于 删除 表中的行。
语法
DELETE FROM 表 WHERE 列 = 值
Person:
LastName |
FirstName |
Address |
City |
Gates |
Bill |
Xuanwumen 10 |
Beijing |
Wilson |
Fred |
Zhongshan 23 |
Nanjing |
删除某行
删除"Fred Wilson" :
DELETE FROM Person WHERE LastName = 'Wilson'
结果 :
LastName |
FirstName |
Address |
City |
Gates |
Bill |
Xuanwumen 10 |
Beijing |
删除所有行
DELETE FROM 表