I want to put in an array some columns of a table in sql server.
for example
att1 att2 att3 att4 att5
-------------------------
1 2 3 4 5
5 6 7 8 9
10 11 12 13 14
I want to have it into an array only the first 3 columns
like
[1,2,3,5,6,7,10,11,12]
so i am skipping columns att4 and att5
1 Answer