***这个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 ORA-01019无法在用户方分配内存问题? 安装oracle的补丁Patch8350262时出错:Patch 8350262:Required component(s) missing 查询速度问题 oracle 触发器 动态SQL(高难度) oracle中drop技术讨论 pdf文件在ORACLE中的存取问题??? 8I客户端能不能连接10G服务器 我的oracle启动错误,高手给看看 sql问题! 锁问题!!!!!!!!!!!!!!!!!!!!!!!!!!!! 一个简单的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