Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Insert with Where Clause

DuraiDec 3 2013 — edited Dec 3 2013

Hi,

Can we write Insert with 'Where' clause? I'm looking for something similar to the below one (which is giving me an error)

insert into PS_AUDIT_OUT (AUDIT_ID, EMPLID, RECNAME, FIELDNAME, MATCHVAL, ERRORMSG)

Values ('1','10000139','NAMES','FIRST_NAME',';','')

Where AUDIT_ID IN

(  select AUDIT_ID from PS_AUDIT_FLD where AUDIT_ID ='1' and RECNAME ='NAMES'

AND FIELDNAME = 'FIRST_NAME' AND MATCHVAL = ';' );

Thanks

Durai

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2013
Added on Dec 3 2013
3 comments
322 views