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

mysql - consulta tres tablas

Únete a Mysql

Prueba esto

select * from table1 t1
join table2 t2 on t1.t2ref = t2.id
join table3 t3 on t2.t3ref = t3.id

Agregue una cláusula where para buscar ciertas filas en la tabla 1

where t1.field = 'value'