I am having the following table
| Student Id | Subject A | Subject B | Subject C | Subject D |
|---|---|---|---|---|
| 1 | 98 | 87 | 76 | 100 |
| 2 | 90 | 100 | 64 | 71 |
This table contains information about the marks scored by students in various subject.
Now I need to store the marks in each row into an array. And I may add more subject column in future.
Now I need to change this
| Student Id | Subject A | Subject B | Subject C | Subject D |
|---|---|---|---|---|
| 1 | 98 | 87 | 76 | 100 |
| 2 | 90 | 100 | 64 | 71 |
into, something like
array1[98,87,76,100] array2[90,100,64,71]