SQLServer数据库的时间函数

--返回日期的年份 select  Year(CreateTime) as 年份 from tablename --返回日期的月份 select  MONTH(CreateTime) as 月份 from tablename --返回日期的天数 select  DAY(CreateDate) as 天数 from tablename --当前时间 2018-10-19 15:30:26 selec
相关文章
相关标签/搜索