Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. create table #t (i int not null);
  2.  
  3. create unique index UQ on #t(i) with ignore_dup_key;
  4.  
  5. insert #t values (1),(1),(2),(2);
  6.  
  7. Duplicate key was ignored.
  8.  
  9. (2 row(s) affected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement