Hi,
I need to check for the existence of record in a table for certain conditions if the record exits just update some muneric columns if it does not exists insert it
can u send me the query on this
declare
begin
--do the update
update table
set col1=some_value
where col2=some_condition; --based on some criteria
--check wheather u updated any rows
if sql%rowcount=0 then
--do nothing
NULL;
else
insert into tables
values(some_value);
end if
end;
Bookmarks