***这个sql怎么写?*** select id,name,bid,bname from a,bwhere a.bid=b.bid(+); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 15:49:03 SQL> select * from t1; ID NAME BID---------- ---------- ---------- 1 1 1 2 3 4 5 6 3 8 4 2已用时间: 00: 00: 00.0015:49:07 SQL> select * from t2; BID BNAME---------- ---------- 1 6 2 3 6已用时间: 00: 00: 00.1615:49:09 SQL> select a.id,a.name,a.bid,b.bname from t1 a,t2 b where a.bid=b.bid(+); ID NAME BID BNAME---------- ---------- ---------- ---------- 1 1 1 6 2 3 4 5 6 3 8 4 2 --9i后的版本可以用join了,左连接:select a.id,a.name,a.bid,b.bnamefrom A表 a left join B表 b on a.id = b.id 两张表关联查询,求解,在线等 数据库备分还原 Oracle中怎样获得两个date型数据之间的年份差 oracle触发器问题(急) 求一SQL:求出特定时间数据的变化? 服务器改了个名字,EM的问题 ado调用oracle数据库存储过程参数传递问题 dbms_sql在存储过程中的应用问题,请帮忙?? 哪里有DEVELOPER/2000的电子版本的教材下载! 语句请教 一个简单的SQL语句问题,解决马上结帖! 请教各位关于作业不执行的问题……
---------- ---------- ----------
1 1 1
2 3 4
5 6
3 8
4 2已用时间: 00: 00: 00.00
15:49:07 SQL> select * from t2; BID BNAME
---------- ----------
1 6
2 3
6已用时间: 00: 00: 00.16
15:49:09 SQL> select a.id,a.name,a.bid,b.bname from t1 a,t2 b where a.bid=b.bid(
+); ID NAME BID BNAME
---------- ---------- ---------- ----------
1 1 1 6
2 3 4
5 6
3 8
4 2
select a.id,a.name,a.bid,b.bname
from A表 a
left join B表 b
on a.id = b.id