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

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

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