select a.车次编号,a.列车类型,a.车站名称 as 出发站,b.车站名称 as 到站,a.出发时间,b.到达时间,(a.硬座价格-b.硬座价格)as 票价 from ((select * from 车次表 where 车站名称 = '秦皇岛') as A inner join (select * from 车次表 where 车站名称 = '北京')as B on A.车次编号 = B.车次标号) on A.车次编号 = B.车次标号 这个条件就能把同一辆车次,列成一条记录,就是同一个TRAIN啊,B.到达时间 该怎样改下呀~,B.到达时间 上面的sql不是已经查出来了么,把问题说描述的在详细一点吧