here is my data in mysql table:
name childid
city 11,12,13
maintain 21,22,29
pool 33,39,100
I want to get data as the below format. So I can use it to join another tables.
11 city
12 city
13 city
21 maintain
22 maintain
29 maintain
33 pool
39 pool
100 pool