不是说set直接赋值,select 间接赋值,如declare @name varchar(10)set @name='李文才'declare @stuNo intselect @stuNo=stuNo from student where stuName=@name为何答案是这样 查看完整描述