![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL SERVER
SQL SERVER
xyzdr
这个作者很懒,什么都没留下…
展开
-
sql server 字符串长度
select DATALENGTH('66666')返回结果:5原创 2022-05-17 11:07:46 · 912 阅读 · 0 评论 -
Sql Server 当前日期第一天
--当前日期select getdate() CurrentDate;--当月第一天select dateadd(day,-day(getdate())+1,getdate()) current_Month_FirstDay;--当月最后一天select dateadd(month,datediff(month,0,dateadd(month,1,getdate())),-1) current_Month_EndDay; --当年第一天select dateadd(YEAR,datedi...原创 2022-05-17 11:05:06 · 1529 阅读 · 0 评论