查询结果赋值给变量
declare @newId int select @newId= top 1.ProjectIntroduce_ID from dbo.MgcWZ_ProjectIntroduceprint @newId
--top 1放前面select top 1 @newId= ProjectIntroduce_ID from dbo.MgcWZ_ProjectIntroduce