android - DISTINCT values with ", " divider in GROUP_CONCAT -


group_concat(g_value,", ") 

this gives me values [comma]+[space] divider

apple, orange, banana, apple, apple

group_concat(distinct g_value) 

this gives me distinct values "," divider without space.

apple,orange,banana

how distinct values ", " divider?

apple, orange, banana

correct syntax is

group_concat( distinct g_value separator ', ') 

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -