Some sort of “different auto-increment indexes” per a primary key values

后端 未结 4 577
既然无缘
既然无缘 2020-12-07 04:24

I have got a table which has an id (primary key with auto increment), uid (key refering to users id for example) and something else which f

4条回答
  •  情书的邮戳
    2020-12-07 05:15

    SQL Server should allow you to do this. If you can't implement this using a computed column (probably not - there are some restrictions), surely you can implement it in a trigger.

    MySQL also would allow you to implement this via triggers.

提交回复
热议问题