/ Published in: SQL
Expand |
Embed | Plain Text
GO CREATE PROCEDURE dbo.test AS DECLARE @ProductTotals TABLE ( ProductID int, Revenue money ) INSERT INTO @ProductTotals (ProductID, Revenue) VALUES (1,2) INSERT INTO @ProductTotals (ProductID, Revenue) VALUES (1,3) SELECT * FROM @ProductTotals GO EXEC dbo.test; GO DROP PROCEDURE dbo.test; GO
You need to login to post a comment.
