Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Found Update Else Insert

Status
Not open for further replies.

MGoel

Programmer
Jan 26, 2002
17
US
Hi All,

How can i write a single sql statement where i check if record exists then just update else insert.

I have seen some where that it is possible but I am unable to search the solution on web or this forum.

Thanks in advance for any help.

Manoj
 
If you are on Oracle 9i, you might be able to make use of the merge statement, which either updates or inserts to a table based on the values in another table. However, I don't believe this command is available in Oracle 8i.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top