复制代码 代码如下:
DECLARE @table TABLE ([Values] varchar(10))
Insert INTO @table Select ‘AAA’
UNION ALL Select ‘CCC’
UNION ALL Select ‘EEE’
UNION ALL Select ‘DDD’
UNION ALL Select ‘BBB’
Select [RowID] = IDENTITY (int, 1, 1), * INTO # FROM @table
Select * FROM #
Drop TABLE #
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/233477.html