首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

多条件建立独一约束的语句

2013-09-08 
多条件建立唯一约束的语句create unique index index_0 on table_0(Case when del0 then A,B end)类似

多条件建立唯一约束的语句
create unique index index_0 on table_0(Case when del='0' then A,B end)

类似这种,当del='0'时,A,B不同时一样
[解决办法]
恕俺愚昧:不知道你在干啥,不知道你想干啥,也不知道你说的是啥!
[解决办法]
楼主是想del=0是在A,B上建立索引,否则不建立索引????

这逻辑号矛盾啊,表里面的记录的del不可能一样吧,del一会等于0,一会儿不等于0 咋整呢

热点排行