I have the following table (named table A):
id | col A (varchar)| col B (varchar)
1 | foo | 1,2,3,...
2 | bar | 4,5,6,...
... | ... | ...
I want to transform it to the following in the same table A:
id | col A (varchar)| col B (int)
3 | foo | 1
4 | foo | 2
5 | foo | 3
6 | foo | ...
7 | bar | 4
8 | bar | 5
9 | bar | 6
10 | bar | ...
... | ... | ...
Do I have sql script way to do that?