开发者

Rewriting comma delimited data to a structured

I have a table which consists of the headings Category and Subcategories

Within the subcategories heading for each category I have a comma separated list of subcategories.
开发者_运维百科

I would like to rewrite the data to a new table so that the comma separated subcategories are in separate rows with the corresponding category in the previous column.

If anyone has any ideas on how to go about this I would be very grateful.


One idea is to output your data then use a function like PHP's explode to parse it and insert it into your new table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜