2. How to delete records in join sql query in oracle. DELETE from role_resource_privilege where exists (select rrp.* FROM role_resource_privilege rrp LEFT JOIN role r ON r.role_id = rrp.role_id LEFT JOIN resource_privilege rp ON rp.resource_id = rrp.resource_id AND rp.privilege_id = rrp.privilege_id where rp.resource_id is null OR r.role_id IS NULL);
Sunday, November 18, 2012
How to delete records in join sql query in oracle.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment