sql >> Base de Datos >  >> RDS >> Mysql

UNIR todos los campos en diferentes tablas UNIRSE

el nombre de la columna debe fusionarse por separado

SELECT  a.id,COALESCE(b.title, a.title) Title,COALESCE(b.text, a.text) Text
FROM    Table1 a LEFT JOIN Table2 b
ON a.id = b.id