想要查寻结果为 姓名 1 , 年龄1 ,爱好 1,爱好 2
不知道这样是否符合你的要求。
select t1.name,t1.age,wm_concat(t1.hobby) con_hobby from scott.test t1 group by t1.name,t1.age;
select *
from public.tablename
where name="1" and age="1" and interest1= "1“ and interest2="2"
group by name order by age asc
SELECT
j.id,
j.join_code,
p.name,
p.tel ,
j.join_time,
o.photo,
j.join_info
FROM dg_company_vote_join_list j
LEFT JOIN dg_common_parent p ON
j.parent_id = p.id
LEFT JOIN
dg_company_vote_join_photo_list o ON
j.id = o.join_id
WHERE j.state = 0
这是我的查询语句查出来是两行,两个photo, 我需要把两个photo字段变成一行显示