1
I have a table cidade_bairro
with several cities and neighborhoods. I want to transfer this data to a new table, but in several lines instead of being in one.
EX:
Cidade Bairros<br>
SP | Consolação-Morumbi-Saude
In the new table "city_bairro2" would be separated into 3 lines:
Cidade Bairro
SP | Consolação
SP | Morumbi
SP | Saude
Could someone help me perform this transfer via SQL Mysql?
This table has thousands of lines, which makes it difficult to define the value "n" for each of the lines
– Christian
@Enter the maximum size in the table
numeros
. It doesn’t have to be the exact amount. If you think the maximum is going to be 500 neighborhoods in a city, put 500 numbers there. Spending a little bit won’t hurt, it only hurts a little performance.– Sorack