如何做两表查询的视图?比如我的库中有两表
select a.name,a.tel,b.code,b.sex from userinfo a,terimid b where a.id=b.id如果改成视图,怎么写呀,我这样建视图时,系统提示,列名有重复!
select a.name,a.tel,b.code,b.sex from userinfo a,terimid b where a.id=b.id如果改成视图,怎么写呀,我这样建视图时,系统提示,列名有重复!
解决方案 »
- 无法连接oracle
- oracle触发器问题
- REHL 5 安装oracle 11g----如何解决?
- 为什么这个表无法操作呢?
- sqlldr如何正确导入字段内容中有半个汉字结尾的数据?
- oracle8i for win98的数据库,备份了数据3文件,控制文件,在2000下怎么恢复
- 在win2000下 oracle8i可以自动备份吗??
- 請問oracle的日志記錄在什麼地方?
- oralce 一个实例装了两个应用系统 一个应用系统导致oralce 的 session 数量不停的增加,事务也出错,请问大概是什么因素导致的?
- 两个不同的SQL语句在Oracle中怎么同时执行
- Win2003上安装Oracle9是否有特别要注意的地方?
- 有答案今天就结贴---如何对指定表空间的表操作
select a.name,a.tel,b.code,b.sex from userinfo a,terimid b where a.id=b.id
as
select a.name,a.tel,b.code,b.sex from userinfo a,terimid b where a.id=b.id
--你贴得sql没有问题,可能你的sql不只是这些
as
select a.name 别名1,a.tel 别名2,b.code 别名3,b.sex 别名4 from userinfo a,terimid b where a.id=b.id
as
select a.name,a.tel,b.code,b.sex from userinfo a,terimid b where a.id=b.id