Right now. I'm working migrating options from tableA to tableB:
tableA
╔═══════════╦══════════════╗
║ id_skills ║ skills ║
╠═══════════╬══════════════╣
║ 1 ║ Java, Python ║
║ 2 ║ JavaScript ║
║ 3 ║ Ruby, Java ║
║ 4 ║ Python, C# ║
║ 5 ║ C++, Ruby ║
╚═══════════╩══════════════╝
tableB
╔═══════════╦════════════╗
║ id_skills ║ skills ║
╠═══════════╬════════════╣
║ 1 ║ Java ║
║ 2 ║ JavaScript ║
║ 3 ║ Ruby ║
║ 4 ║ C# ║
║ 5 ║ C++ ║
║ 6 ║ Python ║
╚═══════════╩════════════╝
I was trying to find a function of sql, that unconcat a string
and is necessary to create everything in a script
We don't really know how many "," is going to be in each row.
Example:
"Java, Python"
In this case, into two rows:
-> Java
-> Python
Note:
There isn't a function of MySql that split a string