sql >> データベース >  >> RDS >> Oracle

Oracleの存在しない場合の挿入ステートメント

    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));
    


    1. Oracle SQL-NULL値のmax()

    2. MySQLのHEX()とUNHEX()はPostgresで同等ですか?

    3. PDO ::__ Construct():サーバーがクライアントに不明な文字セット(255)を送信しました。開発者に報告してください

    4. SQLiteのCount()結果から重複を削除