某个字符之前的值

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

posted @ 2016-02-25 11:16  595824023  阅读(135)  评论(0编辑  收藏  举报