开发者

Rewriting comma delimited data to a structured

开发者 https://www.devze.com 2023-03-05 10:36 出处:网络
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 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

精彩评论

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

关注公众号