oracle数据查询

[复制链接]
查看11 | 回复3 | 2012-9-17 22:29:11 | 显示全部楼层 |阅读模式
select b.fid from tableb b where exists (select 1 from tablec c where c.fbid = b.fid)OR exists (select 1 from tablep p where p.fbid = b.fid)...
回复

使用道具 举报

千问 | 2012-9-17 22:29:11 | 显示全部楼层
select* from (select fid from b where fid in (select c.fid,p.fid from p,c))...
回复

使用道具 举报

千问 | 2012-9-17 22:29:11 | 显示全部楼层
就是用子查询吧...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行