SELECT GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateName ...
.普通获取 SELECT CONVERT varchar ,YEAR GetDate 年 CONVERT varchar ,MONTH GetDate 月 .月不足两位添加 SELECT DateName year,GetDate 年 DateName month,GetDate 月 ...
2019-08-26 14:08 0 7104 推荐指数:
SELECT GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateName ...
select GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateNam ...
转自:http://blog.itpub.net/14766526/viewspace-1156100/ select GETDATE() as '当前日期',DateName(year,GetD ...
...
一个表有三个字段id,dt,d 分别存放id,时间,数值 id dt d 1 2004-08-11 12:12:00.000 9 2 2005-09-11 12:08:00.000 ...
也是今天sql群里有人问,看起来这个问题挺简单,但是我不知道具体该怎么实现。百度了一把,找到一个高手贡献的答案,记一下。 参考链接 sql中转换中文日期 View ...
若对您有用,请赞助个棒棒糖~ ...
...