关于DAYOFWEEK功能 [英] Regarding DAYOFWEEK function

查看:216
本文介绍了关于DAYOFWEEK功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

在DB2中,我们有dayofweek函数,它返回当天的

数值(周日为1,星期六为7)


是否有可能改变这个功能值,我的意思是星期一到7星期日为1

星期日?


任何帮助都会赞赏。


TIA

解决方案

pa *************** @ yahoo.co.in 写道:

问候,
在DB2中,我们有dayofweek函数返回当天的
数值(周日为1,星期六为7)
是否有可能改变这个功能值,我的意思是星期一到星期日为7
星期日?



dayofweek_iso():-)


-

Serge Rielau

DB2解决方案开发

适用于Linux,Unix,Windows的DB2 UDB

IBM多伦多实验室


这很简单:-)。我们如何在实例级别设置。我的意思是如何确切实现




pa *************** @ yahoo.co.in 写道:



键入_ISO有什么不好的?

-

Serge Rielau

DB2解决方案开发

适用于Linux,Unix,Windows的DB2 UDB

IBM多伦多实验室


Greetings,
In DB2, we have dayofweek function that returns a
numeric value for the current day (1 for sunday till 7 for saturday)

Is it possible to alter this function value, i mean 1 for monday till 7
for sunday?

Any help would be appreciated.

TIA

解决方案

pa***************@yahoo.co.in wrote:

Greetings,
In DB2, we have dayofweek function that returns a
numeric value for the current day (1 for sunday till 7 for saturday)

Is it possible to alter this function value, i mean 1 for monday till 7
for sunday?


dayofweek_iso() :-)

--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab


That was easy :-). How can we set at the instance level. i mean how is
the exact implementation.


pa***************@yahoo.co.in wrote:

That was easy :-). How can we set at the instance level. i mean how is
the exact implementation.


What''s so bad about typing _ISO?
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab


这篇关于关于DAYOFWEEK功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆