在sql中如何在一个视图中查询两张表

[复制链接]
查看11 | 回复2 | 2012-6-14 09:57:56 | 显示全部楼层 |阅读模式
1:create view 名字asselect t1.*,t2.*from A T1,B t2where 两张表关联的字段2:create view 名字asselect*from Aunion allselect *from B...
回复

使用道具 举报

千问 | 2012-6-14 09:57:56 | 显示全部楼层
create view as select a.a1,b.b1 from a,b where a.id=b.id...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行