标签: sql sql-server
我想查询
SELECT 'FOO1', 'FOO2'
但是将结果集返回到行而不是列
答案 0 :(得分:7)
SELECT 'FOO1' as foo UNION ALL SELECT 'FOO2' as foo
答案 1 :(得分:0)
SQL Server: Examples of PIVOTing String data