向表中添加字段
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
向表中添加字段
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