I have table like:
|----|----------------|--------------------------|----------------------|
| id |     tickets    |      comb1               |    comb2             |
|---------------------|--------------------------|----------------------|
|  1 | 3146000011086..|  ,13,  ,31,  ,50,66,77,..|  ,22,38,40,  ,  ..   |                       
|---------------------|--------------------------|----------------------|
|2..n| 314600001924...| 5,14,23,  ,  ,50,  ,  ,..| 4,12,21,  ,47,  ,..  |
|-----------------------------------------------------------------------|
I need to take out each elements of comb1 and comb2 to columns like:
|---------------------|------------------|------------------|---------------|
|   val_of_comb1(1)   |  val_of_comb1(2) | ..val_of_comb2(1)|val_of_comb2(2)|
|---------------------|------------------|------------------|---------------|
|                     |         13       |                  |      22       |
|---------------------|------------------|------------------|---------------|
|          5          |         14       |     .. 4         |      12       |
|---------------------|------------------|------------------|---------------|
Maybe take out each element with loop? (but if I have a lot of records how it will affect the database) welcome any ideas
 
    