这在 SQLite 中可能吗?
喜欢:
UNIQUE(col1, col2 = "something", col3),
我所说的独特是什么意思:
#1 col1=Foo | col2=Foo | col3=Foo > OK
#2 col1=Foo | col2=Foo | col3=Foo > OK
#3 col1=Foo | col2=something | col3=Foo > OK
#4 col1=Foo | col2=something | col3=Foo > Should fail because of #3
#5 col1=Foo | col2=something | col3=Bar > OK
#6 col1=Foo | col2=something | col3=Bar > Should fail because of #5