SqlServer 时间格式化
生活随笔
收集整理的這篇文章主要介紹了
SqlServer 时间格式化
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
select GETDATE() as '當前日期',
DateName(year,GetDate()) as '年',
DateName(month,GetDate()) as '月',
DateName(day,GetDate()) as '日',
DateName(dw,GetDate()) as '星期',
DateName(week,GetDate()) as '周數',
DateName(hour,GetDate()) as '時',
DateName(minute,GetDate()) as '分',
DateName(second,GetDate()) as '秒'
轉載于:https://www.cnblogs.com/jimmyLei/p/10662235.html
總結
以上是生活随笔為你收集整理的SqlServer 时间格式化的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: shell实战之tomcat看门狗
- 下一篇: TF-IDF