select col from tb1 where ...
if sql%found then
   update table tbl 
else
   insert table tbl 
end if;