Reputation: 33
i don't know why it's not working.
"SELECT id GROUP_CONCAT(skill SEPARATOR ', ') FROM resume_skills GROUP BY id";
i have a table resume_skills, then two fields id and skill. it return an error like this one :
ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP_CONCAT(skill SEPARATOR ', ') FROM resume_skills GROUP BY id' at line 1
I haven't figure it out yet. Help?
Upvotes: 0
Views: 263
Reputation: 7504
You miss comma(,) between id and group.
Right query:
SELECT id, GROUP_CONCAT(skill SEPARATOR ', ') FROM resume_skills GROUP BY id
Upvotes: 5