摘要: --SQL Server截取字符串 select SUBSTRING('hello@163.com', charindex('.','hello@163.com')+1, Len('hello@163.com')) select SUBSTRING('hello@163.com',0,charindex('.','hello@163.com')) 阅读全文
posted @ 2018-04-23 17:57 鱼若有喵 阅读(132) 评论(0) 推荐(0) 编辑
摘要: --创建函数 周日是最后一天。。。。如有需要 自行修改 create function GetWeek (@time1 datetime ) returns int as begin declare @return int set @return = (select datepart(d,@time 阅读全文
posted @ 2018-04-23 17:56 鱼若有喵 阅读(123) 评论(0) 推荐(0) 编辑