正文

Little trick -- Function Index || Conditional Unique

(2010-01-28 15:16:37) 下一个

Using Function Index To Enforce Conditional Unique On Multiple Columns


CREATE UNIQUE INDEX ON SUBSTR (DECODE (STATUS,1,TEAMID||'/'JOB,NULL),1,110);       

For details, see below:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1249800833250









[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.