Hi,
I need to insert the data of many columns from the same table in an "int array". The values that i need belong to one line of the sql table.
to be more clear, i have a table "TPRINCIPE" :
ID | Column1 | Column2 | Column3 | Column4 | Column5 | Column6 |
1 | 10 | 20 | 30 | 25 | 35 | 40 |
2 | 12 | 15 | 14 | 20 | 50 | 40 |
3 | 4 | 15 | 16 | 20 | 22 | 25 |
I want to put the values of the first line (for example) in an int array :
ID | Column1 | Column2 | Column3 | Column4 | Column5 | Column6 |
1 | 10 | 20 | 30 | 25 | 35 | 40 |
and have as final result , something like this :
array1 = { 10, 20, 30, 25, 35, 40};
I need to this in C# please.
Any help ?