Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Posts
    3

    Question Unanswered: delete using join

    Hello,
    i just a newbe, i need help, please help me Oracle syntaq
    i want to delete record from t_admin_user_code where t_admin_user inner join a.user = b.user which the condition in the t_admin_user where area_id='5' AND aut='4'

    so i want to dalete from t_admin_user_code where at t_admin_user was area_id='5' AND aut='4'

    thank's alot

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Talking Check it out

    You could try something like this:
    Code:
    DELETE FROM t_admin_user_code a
    WHERE  EXISTS (SELECT '?'
                   FROM   t_admin_user b
                   WHERE  b.USER = a.USER
                          AND b.area_id = '5'
                          AND b.aut = '4');
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Mar 2010
    Posts
    3

    Thx bro,

    thank's i try it first

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •