DELETE

用于删除行的SQL命令

DELETE 是用于删除一行或多行的DML命令。

DELETE 一直存在于PostgreSQL中。

更改历史

示例

DELETE 的基本用法示例

postgres=# DELETE FROM foo;
DELETE 1

使用带RETURNINGDELETE

postgres=# DELETE FROM foo RETURNING *;
 id |              val              
----+-------------------------------
  1 | 2020-11-27 08:32:17.741344+01
(1 row)

DELETE 1

分类

DMLSQL命令

参见

TRUNCATE

反馈

请在此处提交关于“DELETE”的任何评论、建议或更正 此处