现在有一ORACLE中的SQL语句,需要移植到DB2中,请问该SQL改如何写
ORACLE中:
select floor(months_between(date1,date2)) from A
date1,date2分别为表中的两个字段 ,都为日期型
DB2中如何使用写SQL,得出的结果与上述语句一致。
请大侠们解答一下,谢谢
select floor((DAYS(date2)-DAYS(date1))/30) ......
http://www.oracle.com/technology/global/cn/software/products/sql/index.html
我在上面oracle页面看到有Oracle Sql Developer下载
但是没有下载链接
高手们看看
http://www.oracle.com/technology/software/products/sql/index.html
点accept后出现的链接1或2
不一定非到官方去下载,网上一 ......
收到了客户的一张光盘,他们将oracle数据库导出成了dmp文件,并且压缩成了许多个tar.gz文件(在linux中做的)
问题是现在在windows中,我如何将这些tar.gz文件解压缩成为一个文件呢? 用7-zip也只能一个个解压
网上找一下工具,好像winrar可以!
gz好像是可以用winrar解压的,解压成一个tar文件,
你试试用 ......
SQL code:
--6行被选择耗时0.032秒
select * from (
select t1.*,rownum rn from (
select * from emp order by sal desc
) t1 where rownum<=10
) where rn>=5;
--6行被选择耗时0.062秒
select * from (
select t1.*,rownum rn from (
select * from emp order by sal desc
) t1
) w ......
我先建了一个表空间Test_DB
然后
我建了三个用户,是用下面的方法建立的
create user AAA identified by 123
default tablespace Test_DB
create user BBB identified by 123
default tablespace Test_DB
create user CCC identified by 123
这三个用户都给了以下的权限
grant ......
在oracle中求一sql语句
已知一表 a 有如下数据
SQL code:
usedate chinaoil exciusoil excichoil wtoil
2009-08-22 1 2 3 4
2009-08-23 9 10 11 12
2009-08-25 13 14 15 ......