Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger or procedure to remove duplication while insertion

youvasriFeb 6 2019 — edited Feb 6 2019

Hi,

Please help to solve the following scenario .

With the below table i have to find the duplication in ID1 column, With that i have to stop/ rempove the upcoming insert statements with if the ID1 data gets duplicated.

   

IDID1
15AS20000
1Common Operation
2Common Operation
9Common Operation
10Common Operation
14AS20000

Either procedure or trigger required to solve the duplication entry while insertion. Duplication check against the varchar2 datatype of ID1.

Comments
Post Details
Added on Feb 6 2019
5 comments
1,171 views