insert into A select * from A;
解决方案 »
- oracle函数返回long raw类型的时候,貌似有长度限制,100K以上会被截断!
- sql developer数据不全,服务器上导出数据后导入到自己机器上年月6位变成5位了
- pro*c为什么执行EXEC SQL WHENEVER NOT FOUND GOTO FAIL1;报错
- 关于ORACLE异地备份的问题
- 数据库开发工程师如何写好详细设计说明书啊?
- ORACLE rownum改成SQL SERVER问题
- 致命问题-请帮我解决谢谢大家
- 请教:oracle备份成sql格式文件用的是什么命令?
- 请教,关于在Oracle快速导入数据以及导出文本的一些问题。
- oracle sql可以定义变量吗?或者其他办法?
- 求援:关于Data Guard的问题
- 请问session在数据库中到底是什么冬冬?
------------------------------ -----------
K1280 2003-8-21SQL> insert into A select b1,max(b2)+1 from A group by b1;1 row insertedSQL> insert into A select b1,max(b2)+1 from A group by b1;1 row insertedSQL> insert into A select b1,max(b2)+1 from A group by b1;1 row insertedSQL> insert into A select b1,max(b2)+1 from A group by b1;1 row insertedSQL> select * from A;B1 B2
------------------------------ -----------
K1280 2003-8-23
K1280 2003-8-24
K1280 2003-8-25
K1280 2003-8-21
K1280 2003-8-22SQL>
K1280 2003/08/21 2033/08/25
这条记录是有两个时间点的
生成的记录的个数是由这两个时间点之间的天数决定的
而且生成的记录必须是在这两个时间点之间的连续天数
例如上面的记录一定要生成这样的记录才行的
K1280 2003/08/21
K1280 2003/08/22
K1280 2003/08/23
K1280 2003/08/24
K1280 2003/08/25
select K_name, startday + rownum -1
from a,emp
where rownum <= endday - startday + 1
select K_name, startday + rownum -1
from a ,emp
where rownum <= endday - startday + 1
原表是a,
select a.'k1280',b.time from a,b where b.time >='2003/08/21'
and b.time <='2003/08/25'