可以分两步:
create table a
as
select d as colum1
from t
where 1 = 2;insert into a
select sum(d) as colum1
from t;
create table a
as
select d as colum1
from t
where 1 = 2;insert into a
select sum(d) as colum1
from t;
解决方案 »
- oracle
- VS 2008 在同一台机子上连接oracle9i的数据库时,oracle9i要同时装上服务器和客户端?还是只装服务器就够了啊?
- 你知道的进来看看
- 数据库表不建主键,对于程序开发会带来什么缺点?
- 大家好,对于 如下ORACLE语句,oracle 为什么删除的是client_capital表的数据?
- group by后提取数据问题
- 请帮忙看看:在Win2k专业版第一次安装Oracle 8.1.7.0.0启动HTTPServer报错
- 各位高手,哪里有关于ORACLE触发器的资料啊!谢谢!!
- 用sqlldr导入文本文件,如何在源txt的第一行数据之前放字段名,同时使log文件不报错?
- 关于数据库查询的问题
- 访问ORACLE表问题
- ADO怎样访问oracle 的LONG RAW 字段
create table a
as
select d as colum1
from t
where 1 = 2;
建一空表insert into a
select sum(d) as colum1
from t;
速度比较快的