alter table CodeInfo drop constraint FK_CodeInfo_CodeCa
alter table CodeInfo add  constraint FK_CodeInfo_CodeCa  foreign key(CategoryID) references CodeCategory(CategoryID)

create table CodeInfo
(
    CodeID int identity(1,1) primary key
    ,CategoryID varchar(8) references CodeCategory(CategoryID)
    ,CodeName nvarchar(8)
)

 

相关文章:

  • 2021-06-09
  • 2021-04-21
  • 2021-07-16
  • 2021-05-25
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案