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!

How can I ensure a CLOB column is unique

Duncan GardnerNov 18 2015 — edited Nov 19 2015

I have a table with a CLOB column that I want to ensure is unique. If the column was VARCHAR2 I could use a unique index.

Plan B is a TRIGGER (BEFORE INSERT OR UPDATE ON <table> FOR EACH ROW) with WHERE dbms_lob.compare(en.text, :NEW.text) = 0; But that mutates

Oracle 12c Standard Edition

This post has been answered by BluShadow on Nov 18 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2015
Added on Nov 18 2015
17 comments
5,524 views