我有一个输入参数categoryid。
我想用这个输入参数为categoryfetch创建一个存储过程。我有一个表category,其中包含列categoryid、shopid、title和logicalcode。
有没有人可以用一个输入参数来告诉类别fetch的存储过程?
发布于 2011-03-24 00:17:28
create procedure categoryfetch
@categoryid int
as
select categoryid, shopid, title, logicalcode
from category
where categoryid = @categoryid
go发布于 2017-02-23 07:51:32
create procedure categoryfetch @categoryid int
从categoryid=@categoryid结束的类别中选择购物者end、标题、逻辑代码
为了执行它
exec类别获取@categoryid=categoryid
https://stackoverflow.com/questions/5408326
复制相似问题