insert into OPT (email, campaign_id)
select 'example@sqldat.com',100
from dual
where not exists(select *
from OPT
where (email ='example@sqldat.com' and campaign_id =100));
insert into OPT (email, campaign_id)
select 'example@sqldat.com',100
from dual
where not exists(select *
from OPT
where (email ='example@sqldat.com' and campaign_id =100));
Zrzucanie bloków danych
Jak usunąć duplikaty z listy rozdzielanej przecinkami według wyrażenia regularnego w Oracle, ale nie chcę duplikatów wartości?
Różnice Oracle między NVL a Coalesce
Oracle SQL plus jak zakończyć polecenie w pliku SQL?
Jak mogę wykonać SELECT DISTINCT na wszystkich polach z wyjątkiem BLOB?