...Curency,Money,Date......
...币种, 金额, 日期.....
...币种, 金额, 日期.....
解决方案 »
- oracle10g10.2.0.1.0类型长度大于最大值
- 如何查询返回ref cursor的function?
- Oracle触发器 编译有错
- 安装Oracle时出现适配器初始化失败
- 同样的数据在不同的库里查询同样SQL,速度相差很大
- 使用database link调用的存储过程,能否获取返回的ref cursor?
- 关于blob 图片的读取到文件
- 一亿条数据如何快速搜索?!!!!!
- 如何启动OracleOraHomeTNSListener80的服务,急....在线等候
- 初学ORACLE,有使用SQL SERVER的基础,请帮忙介绍基本学习ORACLE的书籍
- 怎样用sql把字段“京-12345”替换成“京12345”
- 请教:dp2K如何通过odbc操作异质数据库如sqlserver?
可以吗。
(select sum(currency) from table1 where to_char(fs_date,'yyyymm')=to_char(sysdate,'yyyymm')),
(select count(*) from table1 where to_char(fs_date,'yyyymm')=to_char(sysdate,'yyyymm')),
(select sum(currency) from table1 where to_char(fs_date,'yyyymmdd')<=to_char(sysdate,'yyyymmdd')),
(select count(*)) from table1 where to_char(fs_date,'yyyymmdd')<=to_char(sysdate,'yyyymmdd')),
(select sum(currency) from table1 where to_char(fs_date,'yyyy')<=(to_char(sysdate,'yyyy')-1) and to_char(fs_date,'mm')=to_char(sysdate,'mm')),
(select count(*) from table1 where to_char(fs_date,'yyyy')<=(to_char(sysdate,'yyyy')-1) and to_char(fs_date,'mm')=to_char(sysdate,'mm'))
from dual;
(select count(*)) from table1 where to_char(fs_date,'yyyymmdd')<=to_char(sysdate,'yyyymmdd')),
这段好像不行,我是要求出今年年初到当前月的金额,笔数。
谢谢你给我提供这个思路,可以做到了谢谢。
(select count(*)) from table1 where to_char(fs_date,'yyyy') = to_char(sysdate, 'yyyy') and to_char(fs_date,'mm') <= to_char(sysdate,'mm')),