现有2个表:
1、t_1
station_id station_name
100101 aa
100102 bb 2.t_2
airline_id station_id station_begin_id station_end_id
1 100101 100101 100102 要求得到结果如下:
airline_id station_name station_begin_name station_end_name
1 aa aa bb
1、t_1
station_id station_name
100101 aa
100102 bb 2.t_2
airline_id station_id station_begin_id station_end_id
1 100101 100101 100102 要求得到结果如下:
airline_id station_name station_begin_name station_end_name
1 aa aa bb
解决方案 »
- 安装oracle出现javaw.exe错误
- 求一sql语句
- shared memory realm does not exist
- 用python访问oracle数据库
- PLSQL Developer问题
- oracle中SQL语句的执行顺序
- Oracle中建立视图后,如何读取第30到60行的记录
- 求助,如何解决ORA-12514:TNS:监听进程不能在连接描述符中给出的SERVICE_NAME
- ORACLE两问/(弱水三千、只取一飘大哥们看过来啊)
- 请教SQL在Oracle数据库中的效率问题?
- 在9i下面使用DBLINK去查询oracle7的某个表的数据,报错ORA-01002,咋办?
- 字段值是:1,10,3 或 1,3,10 或 1,2,10,4?? 谢谢
where t_2.station_id=t_1.station_id;
where t.station_id=t1.station_id
and t.station_id=t2.station_id ;
where t.station_id=t1.station_id
and t.station_begin_id=t2.station_id
and station_end_id=t3.station_id ;