有 Table AID1 ID2
1 2
2 3
_______________
Table BID Name
1 a
2 b
3 c
---------------
求一段query得到结果
ID1 Name1 ID2 Name2
1 a 2 b
2 b 3 c
------------------
Thanks!!
1 2
2 3
_______________
Table BID Name
1 a
2 b
3 c
---------------
求一段query得到结果
ID1 Name1 ID2 Name2
1 a 2 b
2 b 3 c
------------------
Thanks!!
解决方案 »
- 继续请教各位PL/SQL中单步调试ORACLE存储过程的问题!
- ubuntu系统中运行java程序调用oracle 的sqlplus,为什么找不到sqlplus呢?
- 如何使用JDBC调用输出参数为游标的Oracle存储过程
- 研究了很久不明白 oracle里如何查询%_'这类通配符关键字的记录??
- 怎样才能返回最新插入记录的主id?
- 我把oracle8i的表导出来了,导到9i时却有如下错误:
- 初学者的Pro*C/C++弱智问题:错误的查询结果,高分求助
- oracle9i客户盘装好后,出现奇怪错误,热心人快帮忙啊!
- 各位大哥,大侠现在小弟遇到一个问题请各位指教!!!!关于ORACLE数据删除的恢复!!
- oracle 01033错误
- oracle 更新的存储过程怎么写
- PRO*C的小问题 高手帮忙解释一下
ID1 ,(select name from B where id=ID1) as Name1,
ID2 ,(select name from B where id=ID2) as Name2
from B
ID1 ,(select name from B where id=ID1) as Name1,
ID2 ,(select name from B where id=ID2) as Name2
from A错了,应该是A
select a.id1
,b1.name Name1
,a.id2
,b2.name Name2
from A ,B as b1,B as b2
where a.id1=b1.id
and a.id2=b2.id
;