Hi kukuk,
In the old (!) days you might write
begin
update <table> set <column> = <value> where <primarykey> = <key>;
if sql%rowcount = 0 then
insert into <table> (<column>,<column>) values (<key>,<value>);
end if;
end;
Ie, update an existing row, but if it doesn't exist, insert one.
Some db's have now introduced various syntaxes for doing it directly, ie upsert, merge etc. I believe 9i has such a beast, and would suggest the 9i docs, try otn.oracle.com
Hth
Bill