is there a way to split a string in sql?

南楼画角 提交于 2019-12-13 23:28:27

问题


i got a column with a value something like this.

digits
1,2,3
12,4,5
3,45,56

and i want to split the value in the row into individual, is there any simple way to do this in SQL ? im using vb.net. thanks in advance


回答1:


TRY THIS:

 SELECT GROUP_CONCAT((digits) SEPARATOR ', ') as digits FROM table                                         


来源:https://stackoverflow.com/questions/27144096/is-there-a-way-to-split-a-string-in-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!