select * from (select t.CLICK_ID,t.MENUID,t.CREAT_TIME,rownumber() over(order by t.CREAT_TIME desc) as rn from PAPP.T_SYS_WEB_CLICK t ) as al where al.rn<=10 and al.rn>=0
oracle 中是用rownum r 而不是rownumber() over(order by t.CREAT_TIME desc) as rn
1:IBM DB2/TOADFEE/COMMAND LINE TOOLS/COMMAND WINDOWS
db2 connect to bssdb user etl using etlah22
用这个方式进行连接和查询操作!
2:? sql00204 完成sqlcode 原因分析
(1):
cast 是进行类型转换的
select cast('2222' as integer) from table
select cast('222231' as decimal(10,2)) from table
(2)decimal
1
select cast('2222314.996' as decimal(10,2)) from table
这个加在一起刚好是10位,小数点右边3
其实你是8位数据
比如
select cast('123456789' as decimal(10,2)) from table
将报告overflow应该是说小数点右边预留了空 ...
An agent could not be started to service this request
很可怕不知道为什么
- 浏览: 17420 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
我的相册
未命名2
共 17 张
共 17 张
链接
最新评论
-
一直想写关于回调函数有关 ...
http://hi.baidu.com/518bc/blog/item/db11 ...
-- by ming206 -
一直想写关于回调函数有关 ...
详细位置请看: http://hi.baidu.com/518bc/blog/i ...
-- by ming206 -
表的自连接同子查询有区别 ...
谢谢 armorking martri的指教
-- by beyondsanli -
表的自连接同子查询有区别 ...
方式二要求下面这个子查询的检索结果最多只有一条记录 SELECT bookcou ...
-- by armorking -
表的自连接同子查询有区别 ...
那要看数据库操作系统的的实现,在各个数据库其中实现方式略有不同,最好是看一下其执 ...
-- by martri






评论排行榜