Splitting mysql value into unknown number of parts
I have been given a mySQL database to restructure into an OpenCart installation. I've pulled most of the data across but in the old site "product categories" have been all put in a single column |228|243|228|239|228| or |88| or |88|243| So I have no idea how many would be in any particular record. I don't want to use a php function to extract this, as I am manually extracting the data with SQL queries into the new database. An added complication is I have to create a new line in the products_to_categories for each value in the column - I don't mind a multiple step process, I'm not expecting to