简体   繁体   中英

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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM