标签:style blog color io 2014 ar div log
CREATE PROCEDURE usp_P1 ( @TableName VARCHAR(200) ) AS BEGIN SET NOCOUNT ON; DECLARE @sql NVARCHAR(200) SET @sql=‘SELECT * FROM ‘+@TableName EXEC(@sql) END GO ALTER PROCEDURE usp_P2 AS BEGIN CREATE TABLE #TB1 (ID INT) INSERT INTO #TB1 SELECT 1 UNION SELECT 2 EXEC usp_P1 ‘#TB1‘ END GO
标签:style blog color io 2014 ar div log
原文地址:http://www.cnblogs.com/TeyGao/p/3904592.html