嗨,我有三个名为airports
, flights
,的表checkin
。从这个表中,我需要检索一些字段,例如:
flight.code,
flight.start_time,
flight.end_time,
flights.start_id,
flights.endid,
airports.name as sloc,
airports.name as eloc
条件是:
ckeckin.flight_id = flights.id,
airport.id = flights.startid, --for sloc
airports.id = flights.endid --for eloc