- CREATE TABLE #TempA
- (
- [ID] [varchar](512) NULL,
- [Desc] [varchar](512) NULL
- )
- INSERT INTO #TempA([ID], [Desc]) VALUES('A', 'Apple');
- INSERT INTO #TempA([ID], [Desc]) VALUES('B', 'Ball');
- INSERT INTO #TempA([ID], [Desc]) VALUES('C', 'Car');
- SELECT '' As ID, '' As [Desc] FROM #TempA
- UNION
- SELECT ID, [Desc] FROM #TempA
- DROP TABLE #TempA
复制代码 |
|