Possible Duplicate:
how to select columns as rows?
I have a table with ID's, like
Table
-------
1
2
3
4
5
and so on
I have this query,
SELECT A,B,Here I need To SELECT the Id's as Column, FROM MyTable
So the Result of this will be,
A B 1 2 3 4 5 6 7 and so on
-----------------------------------