Creating a MySQL SET's from a string

前端 未结 4 1621
我寻月下人不归
我寻月下人不归 2021-01-18 21:29

Is there a way to create a set from a string of separated values in MySQL? For example:

\'the,quick,brown,fox\' => \'the\',\'quick\',\'brown\',\'fox\'

A

4条回答
  •  情书的邮戳
    2021-01-18 22:02

    You could split the text into separate elements, read into a temp table, and then select the result.

    e.g.

    http://forums.mysql.com/read.php?60,78776,242420#msg-242420

提交回复
热议问题