Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: what's wrong with this query?

Re: what's wrong with this query?

From: Kevin Blount <kevin.blount_at_gmail.com>
Date: 26 Jan 2006 12:01:51 -0800
Message-ID: <1138305711.099829.316420@o13g2000cwo.googlegroups.com>


sorry to waste your time read.. less than 60 seconds after posting, I found another site which explain what the problem was. My new (working) query is:

INSERT INTO table_nameA
(person_id,object_id,person_type,show_profile)  SELECT 120,137,1,0 FROM dual WHERE NOT EXISTS (   SELECT *
  FROM table_nameA
  WHERE person_id = 120 AND object_id = 137 )

It was the "dual" part that I didn't understand, but now I do. Received on Thu Jan 26 2006 - 14:01:51 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US