select a.tport,b.portname,a.fport,c.portname
from boatapply a , vcode b, vcode c
where a.tport = b.portcode
and a.fport = b.portcode
from boatapply a , vcode b, vcode c
where a.tport = b.portcode
and a.fport = b.portcode
解决方案 »
- oracle用浏览器访问
- the account is locked什么原因造成
- 急!offline然后online 出现"needs media recovery" 错误
- 這個procedure該怎麼寫?
- ORACLE 监听
- 求大神帮我看看这条语句
- 有谁知道画维恩图的算法?谢谢
- 大侠,救命啊,sqlldr问题 分不够,可以再加
- sybase论坛的人没人答:高分求救!! 主键值为空的记录,unique索引为空的记录。
- Centos6.10安装Oracle 12c 中途闪退
- 请问:Full_name:='Nahtan'||''||'Yebba'是什么意思?主要是||不清楚?
- job的使用,急!!
from boatapply a , vcode b, vcode c
where a.tport = b.portcode
and a.fport = c.portcode
楼上的写错了最后一个where clause
select (select portname from vcode a,boatapply b where a.portcode=b.tport) portname1,(select portname from vcode a,boatapply b where a.portcode=b.fport) portname2 from dual;
portcode在vcode中不唯一,
vcode+flag(一个字段)才是主键
查询的结果:
重复的记录