記錄下執行帶返回值的存儲過程
1.定義變量接收返回值@out
2.@tb_product_catalogID = @out 定義返回值用@out接受,標記output
GO
--帶返回值的存儲過程執行
DECLARE @out INT
EXECUTE dbo.tb_product_catalog_INSERT @name = N'測試', -- nvarchar(100)
@brand_id = 0, -- int
@parent_id = 0, -- int
@custid = 0, -- int
@sort = 0, -- int
@manufacturer_id = 0, -- int
@tb_product_catalogID = @out OUTPUT-- int
PRINT @out
GO
--查看存儲過程
sp_helptext tb_product_catalog_INSERT
GO