最佳答案
试试这个
SELECT SUBSTRING_INDEX(`applicable_branches`, ', ', 1) AS`speditor1`, SUBSTRING_INDEX(`applicable_branches`, ', ', -1) AS `speditor2` FROM `myTable` where `id`= 22
您可以在https://coderwall.com/p/zzgo-w/splitting-strings-with-mysql阅读更多相关信息。
关于mysql - 如何使用逗号分割列的值并在MySQL中显示在行中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57471577/