发布网友 发布时间:2024-10-22 04:28
共1个回答
热心网友 时间:2024-10-23 08:23
你就直接把select @TeacherName=name
from Teacher
where TeacherId=@teachernum
insert into Course(CourseId,Title,Direction,Request,Max_renshu,teachernum,teachername)
values(@nowmax_questionnum+1,@name,@yanjiufangxiang,@request,@max_renshu,@teachernum,@teachername)
将存储过程中的变量改为代码中的变量就ok了,用sql连