create table test as select * from khxy a,khxycs b where a.xyid=b.xyid;
是这样么?
是这样么?
解决方案 »
- 怎么向数据库中添加大量数据(oracle)
- conn / as sysdba与OracleDBConsoleorcl的冲突
- Warning: Procedure created with compilation errors
- 无法解析指定的连接标识符
- 有关存储过程的问题
- 监听找不到实例
- 一个sql的存储过程,在oracle这么改写?
- oracle 插入数据的问题
- 我装的ORACLE进SQL*Plus时,不知道用户名和口令怎么办?
- Oracle11gR2的安装中报错磁盘容量不够怎么解决
- 急急急,,,救命啊。。为什么oracle服务会意外停止。。实在是找不出原因,请各位大虾提点
- 急,在线等,关于Oracle Management Server的问题
XYID XYMC IPGN IPGJ IPGAT PTGN PTGJ PTGAT
1 测试一 0 0 0 0 0 12%
1 测试一 0 0 0 0 2% 0
1 测试一 0 0 0 7.5% 0 0
1 测试一 0 0 8% 0 0 0
1 测试一 0 5% 0 0 0 0
1 测试一 10% 0 0 0 0 0
2 测试二 0 0 0 0 0 07 rows selected我想要的结果是
XYID XYMC IPGN IPGJ IPGAT PTGN PTGJ PTGAT
1 测试一 10% 5% 8% 7.5% 2% 12%
2 测试二 0 0 0 0 0 0能实现吗
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='IP国内长折扣') ipgn,
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='IP国际长折扣') ipgj,
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='IP港澳台长折扣') ipgat,
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='普通国内长折扣') ptgn,
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='普通国际长折扣') ptgj,
(select cssz from khxycs b where a.xyid=b.xyid and b.csmc='普通港澳台长折扣') ptgat
from khxy a