1
1楼 heavenflying 2007-04-06 DELETE 声明The DELETE statement is used to delete rows in a table. 语法
Person:
Delete a Row
| ||||||||||||||||||||||||||||
DELETE FROM Person WHERE LastName = 'Rasmussen' |
结果
| LastName | FirstName | Address | City |
|---|---|---|---|
| Nilsen | Fred | Kirkegt 56 | Stavanger |
It is possible to delete all rows in a table without deleting the table. This means that the table structure, attributes, and indexes will be intact:
可以不删除数据表且删除里面的所有记录行。这就意味着数据表构架,属性以及索引都会完整保留:
DELETE FROM table_name 或 DELETE * FROM table_name |
1
|
相关主题 | 关闭 |
|
| |