Last updated 5 years ago
Was this helpful?
文件可以使用DELETE字句来删除文档。在下边的示例查询返回的字句将返回被删除的文档。
注意这里的keys 匹配是你存储的那个唯一标示文档的ID那一列.
EXPLAIN DELETE FROM tutorial t USE KEYS "baldwin" RETURNING t
看下列的例子,在UI中就是USE KEY后面的参数就是id那一列
EXPLAIN DELETE FROM tutorial t USE KEYS "1" RETURNING t
下面的例子将删除tutorial中title等于Mrs的文档
EXPLAIN DELETE FROM tutorial t WHERE t.title = “Mrs”