标签:ack enter sha mod uid body other row pos
select a.flightid,
a.flightname,
b.cityname,
c.cityname,
a.price,
a.cabinid,
a.time
from 表1 a,表2 b,表2 c
where a.origin=b.cityid
and a.finish=c.cityid
第一个表叫表1,第二个表叫表2,表2用了两次,你只需要替换表1和表2跟你实际的名字一致就行
标签:ack enter sha mod uid body other row pos
原文地址:http://www.cnblogs.com/xingzc/p/6265278.html