锋刀刺骨寒

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
create index idx_a on test(a);  
alter table test add CONSTRAINT uq_a unique(a) enable novalidate;

a就是你想约束唯一的列,他不会care之前的重复数据

posted on 2013-07-23 13:29  Smart Mob  阅读(190)  评论(0)    收藏  举报