PostgreSQL使用delete删除数据的时候关联多个表
看个例子就知道了
删除game_pg_getpoint表中的数据,需要关联getpoint表
- DELETE FROM game_pg_getpoint USING getpoint
- WHERE (getpoint.fixflg = 1 OR game_pg_getpoint.immediately_flag=1)
- AND game_pg_getpoint.memberid = getpoint.memberid
- AND game_pg_getpoint.comment = getpoint.comment
- AND game_pg_getpoint.thanksid = getpoint.thanksid
- AND game_pg_getpoint.thanksname = getpoint.thanksname
- AND game_pg_getpoint.getpoint_regist_date = getpoint.registdate
相关推荐
WanKaShing 2020-11-12
zhbvictor 2020-10-29
kls00 2020-10-15
89921334 2020-07-29
83911930 2020-07-28
89407707 2020-06-27
89921334 2020-06-26
89244553 2020-06-21
84593973 2020-06-21
83911930 2020-06-16
yaoding 2020-06-14
89244553 2020-06-11
89407707 2020-06-11
89921334 2020-06-10
89407707 2020-06-10
goodriver 2020-06-09
kevinli 2020-06-06
84593973 2020-06-05