select email, file, name
from file_tbl as ft
join name_tble as nt on ft.email = nt.email
where nt appId = 6
没有给出所需的结果。
如何实现?
答案 0 :(得分:0)
这将是你可以使用的东西:
SELECT email,GROUP_CONCAT(DISTINCT file SEPARATOR ','),
name from file_tbl
as ft join name_tble
as nt on ft.email = nt.email
WHERE 1
GROUP BY nt.email