![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sqlserver
woini213
这个作者很懒,什么都没留下…
展开
-
sqlserver 自定义日期函数(MMdd)
在项目过程中,需要判断用户的生日,只能取月日格式(MMdd),由于sqlserver没有这种格式,所以写了一个自定义的函数。可能会有其他的解决方法,但是本人是第一次使用sqlserver,对此也不了解。所以能想到的就是写个自定义函数了。 if object_id('getMonthAndDay') is not null drop function getMonthA...原创 2013-03-21 09:47:30 · 1040 阅读 · 0 评论 -
sqlserver 自定义日期函数(yyyy-MM-dd)
if object_id('getDateFormat1') is not null drop function getDateFormat1gocreate function getDateFormat1(@dt datetime) returns varchar(10) as begin DECLARE @now VARCHAR(...原创 2013-03-21 10:34:33 · 1654 阅读 · 0 评论