摘要:
SQLSERVER字符串截取2007-04-13 21:47:15|分类:SQL|标签:sqlserver字符串截取|字号订阅已知: 字段A='F:\photo\Winter Leaves.jpg'要求:分段截取每段字符[字段A不能为TEXT类型,否则报错]解决方法:++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---截取字符串A的第一个\左边的字符串select left(A,charindex('/',A)-1)输出结果:F:++++++++++++++++++++++++++++ 阅读全文