SQL Server截取字符串

--SQL Server截取字符串
select SUBSTRING('[email protected]', charindex('.','[email protected]')+1, Len('[email protected]'))
select SUBSTRING('[email protected]',0,charindex('.','[email protected]'))

 

猜你喜欢

转载自www.cnblogs.com/yilong-/p/8920748.html