sysibm.sysdummy( dual Oracle DB2). , , , 0, . AFAIK, , .
. , , , .
insert into table (column1, column2, column3, column4, column5)
select 'A', 'B', 'C', 'D', 'E' from dual where not exists (select * from table where column1 = 'A');
I found this very useful for cases where I have several processes that are inserted into the table, and I can not guarantee the order of these inserts. You can determine if the insert was successful or not with a return value that will be 1 if it was successful, or 0 if not
source
share