Oracle Equivalent to MySQL INSERT IGNORE?

后端 未结 8 2355
旧时难觅i
旧时难觅i 2020-11-27 07:24

I need to update a query so that it checks that a duplicate entry does not exist before insertion. In MySQL I can just use INSERT IGNORE so that if a duplicate record is fo

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 07:41

    How about simply adding an index with whatever fields you need to check for dupes on and say it must be unique? Saves a read check.

提交回复
热议问题