📅  最后修改于: 2022-03-11 15:05:08.644000             🧑  作者: Mango
//returns the concatenated string from multiple rows into a single string
SELECT emp_id, emp_fname, emp_lname, dept_id,
GROUP_CONCAT(designation) as "designation" FROM employee group by emp_id;