如题,'我决撒来得及角动量' 获取他的最后一个汉字  '量'

解决方案 »

  1.   


    select right('我决撒来得及角动量',1)
      

  2.   

    很对,可是这个为什么
    if(right(@county,1)='市')
     begin
       set @city=@county
       set @county=null
     end不对啊
      

  3.   

    可以用以下变通方法试试:if charindex(right(@county,1),'市')=1) 
    begin 
      set @city=@county 
      set @county=null 
    end 
      

  4.   

    加了一个就OK 了,replace(@country,' ','')