--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 on 2018-04-23 17:57  鱼若有喵  阅读(132)  评论(0编辑  收藏  举报