| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1242 人关注过本帖
标题:求助---sql 报表转换为 oracle 报表!!!!
只看楼主 加入收藏
求索者
Rank: 1
等 级:新手上路
帖 子:4
专家分:2
注 册:2013-3-6
收藏
 问题点数:0 回复次数:0 
求助---sql 报表转换为 oracle 报表!!!!
select case  
when substring(convert(varchar,getDate(),120),6,14) >= '[?FristSeasonStart|01-01 00:00:00?]'  
and substring(convert(varchar,getDate(),120),6,14) < '[?FristSeasonEnd|03-25 23:59:59?]'
then 1  
when substring(convert(varchar,getDate(),120),6,14) >= '[?SecondSeasonStart|03-26 00:00:00?]'  
and substring(convert(varchar,getDate(),120),6,14) < '[?SecondSeasonEnd|06-25 23:59:59?]'
then 2  
when substring(convert(varchar,getDate(),120),6,14) >= '[?ThirdSeasonStart|06-26 00:00:00?]'  
and substring(convert(varchar,getDate(),120),6,14) < '[?ThirdSeasonEnd|09-25 23:59:59?]'
then 3  
when substring(convert(varchar,getDate(),120),6,14) >= '[?FourthSeasonStart|09-26 00:00:00?]'  
and substring(convert(varchar,getDate(),120),6,14) < '[?FourthSeasonEnd|12-31 23:59:59?]'
then 4  
else '0' end as quarter
搜索更多相关主题的帖子: convert oracle 
2014-07-24 20:08
快速回复:求助---sql 报表转换为 oracle 报表!!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017081 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved