向表中添加字段

alter table [song]
add musictypeid int

 

修改表中字段类型

alter table member
alter column ActiCode int not null

 

修改表中主外键

ALTER TABLE [dbo].[song] WITH CHECK ADD FOREIGN KEY([musictypeid])
REFERENCES [dbo].[musictype] ([id])
GO

 

 

相关文章:

  • 2021-11-28
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-02-07
  • 2021-11-28
相关资源
相似解决方案