Concat two columns from different MySQL tables -
i trying concat list of usernames 1 column in mysql. 2 lists of usernames coming 2 different tables.
(select cast(group_concat(concat(usr.username, ' ' ,cc.username)separator ',') char(200)) messagejobrecipients mr left join chatusers cur on mr.chatuserid = cur.id left join users usr on cur.tableuserid=usr.user_id left join customer_contacts cc on cur.tableuserid=cc.id jobid = j.id) membersincluded
the code works fine if try display concat(usr.username)
or concat(cc.username)
when try display both concat(usr.username, ' ' ,cc.username)
returns null.
Comments
Post a Comment