ALTER PROCEDURE dbo.StoredProcedure1
 /*
 (
 @parameter1 int = 5,
 @parameter2 datatype OUTPUT
 )
 */
 /*@stuNum nchar(10),*/
 @stuNum nchar(10),
 @stuName nchar(10),
 @stuPassWord nchar(10),
 @stuSex char(10),
 @stuClassNum nchar(10),
 @name nchar(10) output
 
 with encryption
 
AS
 SET NOCOUNT off
 
 insert into student values(newid(),@stuNum,@stuName,@stuPassWord,
 case @stuSex
 when '男' then 'true'
 when '女' then 'false'
 end
 ,@stuClassNum)
 
 select stuNum,stuName from student where stuName=@stuName
 
 select @name=stuName from student
 
 RETURN @name

相关文章:

  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-09-28
  • 2022-02-15
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2022-03-06
  • 2021-08-27
  • 2021-10-29
  • 2022-12-23
相关资源
相似解决方案