本帖最后由 jasonliangbiz 于 2013-04-18 17:09:52 编辑

解决方案 »

  1.   

    如果固定格式,固定拆分成3个字段,用charindex 和substring 就可以了
      

  2.   


    是固定格式. 格式为:string空格string空格string
      

  3.   

    现在这样
    sFir:
    select SUBSTRING('你 好吗 ?',0,CHARINDEX(' ','你 好吗 ?',0) )
    sEc:
    select SUBSTRING('你 好吗 ?',CHARINDEX(' ','你 好吗 ?',0),
    CHARINDEX(' ','你 好吗 ?',CHARINDEX(' ','你 好吗 ?',0)+1)-1)
    sTh:这个怎么写?那sTh就不知道怎么写了.
      

  4.   

    sth:select right('你 好吗 ?',len('你 好吗 ?')-charindex(' ','你 好吗 ?'
    ,charindex(' ','你 好吗 ?')+1))
      

  5.   

     sTh:可以用
    reverse