sqlserver 正好有这样的功能。 create table test(id int) go create unique index ix_test on test(id) where id > 0 go drop table test go 大概这样子,你试试。
34,576
社区成员
254,587
社区内容
加载中
试试用AI创作助手写篇文章吧