某个字符之前的值

select left('2/6',charindex('/','1/')-1)   select left(字段,charindex('-',字段)-1) from tb

原文地址:https://www.cnblogs.com/zylong/p/5216318.html