Does DB2 support conditional insert statement?
insert into PRODUCT values ('123', 'PEN', 'a pen') where (select count(*) from PRODUCT < 100) ;
If not can you please give me the easiest way to achieve this.
insert into PRODUCT values ('123', 'PEN', 'a pen') where (select count(*) from PRODUCT < 100) ;
If not can you please give me the easiest way to achieve this.