具体的问题看截图吧!!!
select StationTitle from AkLineStation inner join AkLineProcess on AkLineProcess.Id=AkLineStation.LineProcessId where AkLineProcess.LineTitle='Line1' and AkLineStation.StationTitle='EL1-2' select StationTitle from AkLineStation inner join AkLineProcess on AkLineProcess.Id=AkLineStation.LineProcessId where AkLineProcess.LineTitle='Line1' and lower(left(AkLineStation.StationTitle,2))='el' and AkLineStation.StationTitle<>'EL1-2' select StationTitle from AkLineStation inner join AkLineProcess on AkLineProcess.Id=AkLineStation.LineProcessId where AkLineProcess.LineTitle='Line1' and AkLineStation.StationTitle='EL1-2' union select StationTitle from AkLineStation inner join AkLineProcess on AkLineProcess.Id=AkLineStation.LineProcessId where AkLineProcess.LineTitle='Line1' and lower(left(AkLineStation.StationTitle,2))='el' and AkLineStation.StationTitle<>'EL1-2'
难道你没看出排序了吗?
你需要union all。