- DECLARE @tempTable TABLE (strVal int);
- INSERT INTO @tempTable
- SELECT * FROM EXAMPLE_TABLE; --与@tempTable表结构一致 ,如果不一致要写上字段名
- SELECT * FROM @tempTable;
转载于:https://www.cnblogs.com/pinbo/archive/2010/03/09/1681446.html
转载于:https://www.cnblogs.com/pinbo/archive/2010/03/09/1681446.html