select b.bmh as b,a.pycj as d41,b.pycj as d42,c.pycj as d43,a.pycj+b.pycj+c.pycj as zcj from t_1_a_41_pyjd a,t_1_a_42_pyjd b,t_1_a_43_pyjd c where a.bmh=b.bmh,b.bmh=c.bmh;
其中:
t_1_a_41_pyjd,t_1_a_42_pyjd,t_1_a_43_pyjd是三个表。我想把三个pycj加在一起啊。
其中:
t_1_a_41_pyjd,t_1_a_42_pyjd,t_1_a_43_pyjd是三个表。我想把三个pycj加在一起啊。
解决方案 »
- oracle安装报错怎么办。。。急
- oracle 9i ORA-00020
- ORACLE调试存储过程
- (Oracle): Set the correct values of an attribute PRating
- 怎样把B表字段a,b,c内容复制A表字段a,b,c呢?其中A表字段已有内容
- oracle怎么从时间里拿到小时
- 请帮忙看看这个create table有什么问题?
- 动态创建视图
- 用oracle9i新建了一个数据库,怎么登陆到management server时,看不到这个新的数据库呀?
- sql的问题,不明白为什么是这个结果。
- 菜鸟求助怎么删除ORACLE!
- ORACLE如何把SQL查询的结果存为临时表???
select b.bmh,a.pycj,b.pycj,c.pycj,a.pycj+b.pycj+c.pycj as zcj from
t_1_a_41_pyjd a,
t_1_a_42_pyjd b,
t_1_a_43_pyjd c
where a.bmh=b.bmh,b.bmh=c.bmh;
t_1_a_41_pyjd a,
t_1_a_42_pyjd b,
t_1_a_43_pyjd c
where a.bmh=b.bmh and b.bmh=c.bmh;--忘记and了。
t_1_a_41_pyjd a,
t_1_a_42_pyjd b,
t_1_a_43_pyjd c
where a.bmh=b.bmh and b.bmh=c.bmh; --,改成and 了