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
解决方案 »
- 请问数据库中表的字段可以是前两个字段的乘积么
- pl/sql form开发,取消按钮的触发器语句!
- [求救]用java API连接oracle数据库的问题
- 请问使用向导创建表时,有一个存储信息中的:增长速率xxx行/日月年,是什么意思,感谢
- oracle数据库实例sid可否修改
- ORACLE数据库迁移到MYSQL数据库
- PL/SQL中的变量声明问题?
- 我可以把目录:‘C:\My Documents\002.pdf'加到表里吗?怎么加
- oracle数据库将记录更新为null的问题,谢谢了帮忙看看!
- oracle expdp远程导出数据
- 请问: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(一个字段)才是主键
查询的结果:
重复的记录