您好,欢迎来到99网。
搜索
您的当前位置:首页Oracle返回星期几的函数

Oracle返回星期几的函数

来源:99网


做Oracle报表时遇到需求滚动展示周数据,除掉周六和周天的数值,简单记录下。 在sql语句where条件中添加:to_char(d1.d_day,d)not in(1,7)--去掉周六周日两天 现有时间维表d_timeday,执行sql: select * from d_timeday d where to_char(d.d_day,d) not in(1

做Oracle报表时遇到需求滚动展示周数据,除掉周六和周天的数值,简单记录下。

在sql语句where条件中添加:to_char(d1.d_day,'d')not in(1,7)--去掉周六周日两天

现有时间维表d_timeday,执行sql:

select * from d_timeday d where to_char(d.d_day,'d') not in(1,7)

Copyright © 2019- 99spj.com 版权所有 湘ICP备2022005869号-5

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务