关于建立视图的问题(急,在线等待)

zhengjianwu 2003-09-16 02:37:21
如有一个表(a)字段为 mobile(手机号)(,wap_type(站点类型),wap_name(站点名称)
另外一个表(b)字段分别为 mobile(手机号),group(记录),再一个表(c)的字段为mobile(手机号),record(记录)。
现在要建立一个视图实现这样的功能:就是视图有三个字段。
mobile(手机号),在b表中与该手机号相对应的的记录,在c表中与该手机号相对应的的记录
...全文
49 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiangqy 2003-09-17
  • 打赏
  • 举报
回复
select a.mobile,b.group,c.record from a,b ,c where a.mobile=b.mobile and a.mobile=c.mobile order by a.mobile and b.group
onejune4450 2003-09-16
  • 打赏
  • 举报
回复
select mobile,(select count(1) from b where a.mobile=b.mobile),
(select count(1) from c where a.mobile=c.mobile)
from a;
Nickle_Final 2003-09-16
  • 打赏
  • 举报
回复
回复人: onejune4450(中文字符) 这样还不行啊?那你还要咋样?你给个结果集的例子嘛。
zhengjianwu 2003-09-16
  • 打赏
  • 举报
回复
高手帮忙,还是不行啊。
hutulaodao 2003-09-16
  • 打赏
  • 举报
回复
select a.mobile,b.group,c.record from a,b ,c where a.mobile=b.mobile and a.mobile=c.mobile
onejune4450 2003-09-16
  • 打赏
  • 举报
回复
select a.mobile,b.group,null from a,b where a.mobile=b.mobile
union
select a.mobile,null,c.record from a,c where a.mobile=c.mobile
zhengjianwu 2003-09-16
  • 打赏
  • 举报
回复
现在要建立一个视图实现这样的功能:就是视图有三个字段。
mobile(手机号),在b表中与该手机号相对应的的总的记录,在c表中与该手机号相对应的总的记录
skingddddd 2003-09-16
  • 打赏
  • 举报
回复
關聯
zhengjianwu 2003-09-16
  • 打赏
  • 举报
回复
是要建一个视图,此视图要有三个字段,用这种方法好像不太可行吧
armu80830 2003-09-16
  • 打赏
  • 举报
回复
select a.mobile,b.group from a,b where a.mobile=b.mobile
union
select a.mobile,c.record from a,c where a.mobile=c.mobile

3,499

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧