Answers for "group_concat line break"

SQL
0

group_concat mysql

//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;
Posted by: Guest on December-31-2021
0

group_concat only returns one row

/* 
	When using aggregate functions like GROUP_CONCAT you need to tell 
	the database about the column using which you want your data 
    to be combined. */
Posted by: Guest on September-22-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language