存储过程怎么使用常量
答案:2 悬赏:80
解决时间 2021-02-22 02:15
- 提问者网友:温柔又任性
- 2021-02-21 20:23
存储过程怎么使用常量
最佳答案
- 二级知识专家网友:虚伪的现实
- 2021-02-21 21:25
参考一下吧
create procedure print_std_info1
@name varchar(8)
as
select 学号,姓名,系别,出生日期 from student where 姓名=@name
execute print_std_info1 '高春接'
create procedure print_std_info1
@name varchar(8)
as
select 学号,姓名,系别,出生日期 from student where 姓名=@name
execute print_std_info1 '高春接'
全部回答
- 1楼网友:甜野猫
- 2021-02-21 22:47
declare @a int
set @a=1
while @a<=@ncount
begin
select top 1 * from
(select top (@a) * from huodonggankanpc where huodongid=@huodongid) as a
order by a.nround desc
set @a=@a+1
end
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯