V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
QQ16748717
V2EX  ›  问与答

sql2008 里怎么样把查找到的内容截断?

  •  
  •   QQ16748717 · Feb 4, 2015 · 2747 views
    This topic created in 4105 days ago, the information mentioned may be changed or developed.
    例如我查到:
    你好abc
    我好dce
    他很好egf

    怎么样在select里把查到的某个字体内容只保留中文?也就是遇到英文或其它字符的时候自动截断后面的不要?
    2 replies    2015-02-04 15:22:21 +08:00
    QQ16748717
        1
    QQ16748717  
    OP
       Feb 4, 2015
    其实我就只想要得到的结果是
    你好
    我好
    他很好
    PopeyeLau
        2
    PopeyeLau  
       Feb 4, 2015
    自己写函数。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   808 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:10 · PVG 04:10 · LAX 13:10 · JFK 16:10
    ♥ Do have faith in what you're doing.