I have a table with hundreds of columns. I need to take the result of every column (except one) and put them into an array and bring back the rest of the results. Here it was the table looks like:
ID x123 x124 x125 x126 ......
2323343 0 0 0 1
3434566 1 1 1 0
3434342 1 1 0 0
3366577 0 1 1 1
.... .... .... .... ....
This table continues on for a while. Basically I need all of the x# column's results brought back in an array with the rest of the tables results (except for the ID column). So that my results would look like:
array x123 x124 x125 x126 ......
{0,0,0,1,...} 0 0 0 1
{1,1,1,0,...} 1 1 1 0
{1,1,0,0,...} 1 1 0 0
{0,1,1,1,...} 0 1 1 1
.... .... .... .... ....
my current SQL statement is something like this:
select * from mffcu.crosstab_183
I figure this would take a function of some sort to build a table with these results and that is fine. I really don't know where to begin with getting EVERY column and EVERY record to be thrown into an array right now without NAMING every single column (there are so many). Any swing in the right direction would help greatfully.