Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

mysql Query that splits a string into various potions (2 replies)

$
0
0
I would like you to help me with a query that can split string of words into groups of two.
For example in a column i have 10 names, and these are of 5 people. They are separated by a space. So i would like an sql query that would split these names with a comma. Every after the second
[name1 name2 name3 name4 name5 name6,name7 name8 name9 name10]
output should be ==>name1 name2, name3 name4, name5 name6,name7 name8, name9 name10

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>