All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
动态网页PHP编程中八种常见的文件操作方式_[PHP教程]
在指定应用程序域中执行代码_[Asp.Net教程]
菜鸟的最爱,.NET经典代码汇总(一)_.net资料_编程技术
在ASP.NET中web.config配置数据库_[Asp.Net教程]
SQL Server 中Inner join 和where的效率差异_[SQL Server教程]
C#网络应用编程基础练习题与答案(二)_[Asp.Net教程]
如何用vbscript实现计算机的关闭或重启_JavaScript技术_编程技术
delphi字符串栅格组件(TStringGrid)使用实例
ASP.NET自动识别GB2312与UTF-8编码的文件_.net资料_编程技术
讲述c#中的类型转换_[Asp.Net教程]
Reading number is top 10 pictures
Chinese paper-cut grilles art appreciation8
girl of HuNan name is LiXiang(湖南辣姐李湘的写真)
穷哥们向美女求婚攻略
NeedWallpaper14
西游四格漫画(一)
29 the belle stars after bath figure2
In the world the most mysterious 21 place landscape4
到底是谁撞谁呀?
可爱的小动物
Group of female porn in 《westwards》, uninhibited woman threatened to not the bottom line
Download software ranking
Boxer's Top ten classic battle10
Unix video tutorial15
Visual C++界面编程技术
Detective task-the top secret prostitution files
WebService在.NET中的实战应用教学视频 → 第3集
美女写真1
Boxer vs Yellow4
C#高级编程(第4版)
豪门浪荡史
Desire a peach blossom
归海一刀 published in(发表于) 2014/2/3 6:41:59 Edit(编辑)
从多个位置截取字符串的SQL语句_[SQL Server教程]

从多个位置截取字符串的SQL语句_[SQL Server教程]

从多个位置截取字符串的SQL语句_[SQL Server教程]
知: 字段A=’F:\photo\Winter Leaves.jpg’
要求:分段截取每段字符[字段A不能为TEXT类型,否则报错]
解决方法:

---截取字符串A的第一个\左边的字符串
select left(A,charindex(’/’,A)-1)
输出结果:F:

---截取\中间的字符串
select left(stuff(A,1,charindex(’/’,A),’’),charindex(’/’,stuff(A,1,charindex(’/’,A),’’))-1)
输出结果:photo

---截取最后一个\后面的字符串
select reverse(left(reverse(A),charindex(’/’,reverse(A))-1))
输出结果:Winter Leaves.jpg

---截取字符串A的首字幕
select STUFF(A,1, 1, ’’)
输出结果::\photo\Winter Leaves.jpg


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.