[英]Get the weekday from a datecolumn
I have following column:我有以下专栏:
Time: 2019-01-10 07:31:27.000
...
Now I want the weekday for each row.现在我想要每一行的工作日。
So for example for the first row I want as a result Sunday因此,例如对于我想要的第一行周日
我建议你试试这个(MS SQL):
select datename(weekday,[yourDateTimeColumn]) from [YourTable]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.