关于DELETE

最近更新时间: 2024-06-12 15:06:00

delete用于删除表数据,可以全部删除或者部分删除。 示例说明: 1)多表关联删除 使用using关键字,支持字段前表名

delete from tbase using t_appoint_col where tbase.id=t_appoint_col.id;

2)返回删除数据

delete from tbase returning *;

3) 支持省略from关键字

delete tbase where id=3;