返回顶部

收藏

PostgreSQL 使用 delete 删除数据的时候关联多个表

更多
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  

标签:sql

收藏

0人收藏

支持

0

反对

0

发表评论