I have a table with 4 columns:
ID (Primary Key)
I need a single SQL statement to perform an update if the primary key in the sql already exists or an insert if the primary key does not already exist? Any ideas? I'm hoping there is some way to do this in one statement.
I could easily do an SQL statement in my code to see if the primary key exist then do an if else to do either an insert/update, but that sounds like a waste of code and inneficient if an single oracle SQL query would cover both for me.