insert into OPT (email, campaign_id)
select '[email protected]',100
from dual
where not exists(select *
from OPT
where (email="[email protected]" and campaign_id =100));
More Related Contents:
- How to uninstall / completely remove Oracle 11g (client)?
- How can I set a custom date time format in Oracle SQL Developer?
- Get counts of all tables in a schema
- Determining location of relevant tnsnames.ora file
- Default row ordering for select query in oracle
- oracle convert unix epoch time to date
- Oracle trigger after insert or delete
- ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
- Difference between a user and a schema in Oracle?
- Base64 encoding and decoding in oracle
- What is the dual table in Oracle?
- PL/SQL – Use “List” Variable in Where In Clause
- How do I calculate tables size in Oracle
- How to avoid variable substitution in Oracle SQL Developer
- Auto-increment in Oracle without using a trigger
- Create an Excel Spreadsheet from a Oracle Database
- How to send email using Oracle 10 g Forms
- How to get primary key column in Oracle?
- How to create a user in Oracle 11g and grant permissions
- Trigger to enforce M-M relationship
- How do you get nicely formatted results from an Oracle procedure that returns a reference cursor?
- Oracle: how to INSERT if a row doesn’t exist
- Valid Date Checks in Oracle
- Functions vs procedures in Oracle
- Oracle: difference between max(id)+1 and sequence.nextval
- HikariCP: What database level timeouts should be considered to set maxLifetime for Oracle 11g
- How to call an Oracle function with a Ref Cursor as Out-parameter from C#?
- How to Register Pluggable Database(PDB) with new created LISTENER
- Grant Select on all Tables Owned By Specific User
- ORA-12704: character set mismatch