I have a table A with column say id and attributes in this id: 1 to 20 or any others. I want a SQL query in such a way that Query will search for the particular id into the column say 11 then perform some action otherwise insert a new row with that (11) value.
In short
Search 11 in id if found then update 11 to 12 otherwise insert 11 into id