Friday 30 November 2018

sql - Convert multiple rows into one with coma as separator

If I issue SELECT ID FROM TestAhmet I get this result:



1

3
5
2
4


but what I really need is one row with all the values separated by comma, like this:



1,2,3,4,5



How do I do this?



ps: I cant do this : Convert multiple rows into one with comma as separator

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...