Is there something analogous to a split() method in mySql?

前端 未结 3 369
粉色の甜心
粉色の甜心 2021-01-20 23:54

I\'m looking to write a stored procedure that takes as a parameter a string that\'s delimited by a token and then to run a while loop in the procedure for every item in that str

3条回答
  •  天涯浪人
    2021-01-21 00:41

    I think you can accomplish what you want via substring_index

    It's not as straightforward as just a split() function but I'm sure you can work out a while loop with this function.

提交回复
热议问题