阅读背景:

在复合主键上自动递增

来源:互联网 

I have a table called 'Workspaces' where the columns 'AreaID' and 'SurfaceID' work as a composite primary key. The AreaID references to another table called 'Areas' which only has AreaID as the primary key. What I want to do now is to make the surfaceID recound from 1 on every new AreaID. Right now I'm using the following code for the tables 'Areas' and 'Workspaces':I have a table called 'Workspaces' where the co




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: