ALTER PROCEDURE GetProductContent
(@ProductID int,
@ProductName char(20) output,
@Introduction char(200) output
)
AS
select @ProductName=[ProductName],@Introduction=[Introduction] from Product where [ProductID]=@ProductID
select InfoName,Infomation from ProductInfo where [ProductID]=@ProductID
RETURN
第一个select检索两个参数
第二个select返回一张表。
那执行这个存储过程的时候返回的数据是什么样子的?该怎么使用?
转载于:https://www.cnblogs.com/suntears/archive/2006/08/11/474614.html