Syntax -
SELECT GROUP_CONCAT(DISTINCT(categories) SEPARATOR ' ') FROM table
- DISTINCT for unique categories
- SEPARATOR for seperate two categories by space, comma.
for space - ' '
for commna - ','
for new line - '/n'
Syntax -
SELECT GROUP_CONCAT(DISTINCT(categories) SEPARATOR ' ') FROM table
for space - ' '
for commna - ','
for new line - '/n'
No comments:
Post a Comment