Ben postgres bu gibi satırlar var:null değeri benzersiz değil
create test (
name varchar(10),
address varchar(20),
college varchar(20),
constraint test_uq unique (name,address,college);
nasıl boş değerlerinin benzersiz hale yapabilirsiniz, bu nedenle çıkış:
name | address | college
john | rome |
john | rome |
max | tokyo |
Böyle bir tablo oluşturmak şöyle olabilir:
name | address | college
john | rome |
max | tokyo |
MySQL ve benzersiz olmayan null'lerle ilgili soru: http://stackoverflow.com/qu estions/4081783/unique-key-with-nulls – osa