我需要使用group_concat和separator来获取表的所有字段。 我收到语法错误
ERROR 1064 (42000): 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 '*) AS qualifications, FROM ACHIVEMENTS_REF e LEFT JOIN BANK_DETA' at line 1
执行以下mysql命令时。
SELECT e.*,p.*,q.*,GROUP_CONCAT(q.*) AS qualifications, FROM ACHIVEMENTS_REF e LEFT JOIN BANK_DETAILS p ON e.USER_ID=p.USER_ID LEFT JOIN EDUCATIONAL_QUALIFICATIONS q ON e.USER_ID=q.USER_ID;
当我给group_concat中的每一列时,它工作正常。 我是否需要指定每列我有更多列数,我想在这里找到每一列。