求个sql函数 - MS-SQL Server / 基础类
SQL code:
<p align="center"><img title="2222222222222" height="200" alt="2222222222222" src="../UpLoadFolder/201056221026166491.gif" width="200" border="0" /></p>
有这种类型的字符串
我想把里面的 201056221026166491.gif 或者 ../UpLoadFolder/201056221026166491.gif
这样的字符串拿出来使用
应该如何写sql啊
这个还是去C#里面问正则吧,
没个具体规律,SQL难搞
SQL code:
declare @s varchar(1000)
set @s='<p align="center"><img title="2222222222222" height="200" alt="2222222222222" src="../UpLoadFolder/201056221026166491.gif" width="200" border="0" /></p>'
select LEFT(col,charindex('"',col)-1) as col from (select stuff(@s,1,charindex('../',@s)-1,'') as col) t
/*
col
------------------------------------------------
../UpLoadFolder/201056221026166491.gif
(1 行受影响)
*/
SQL code:
declare @s varchar(1000)
set @s='<p align="center"><img tit
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
如何在SQL2005中设定定时作业,比如说定时清理某些表的数据,
或者是定时的将某些表的数据导出excel!
在线等待,急急急,最好是详细步骤!
之前我做的作业有点问题!
帮UP
参考:http://hi.baidu.com/toiota ......
字段1,字段2.....字段N,Status,ParentID
1,Name1....test1,1,99
1,Name1....test1,3,99
1,Name2....test2,1,101
1,Name2....test2,3,101
1,Name3....test3,2,101
1,Name1....test1,4,101
想要的结果是:
1,Na ......
1。怎样使xp_cmdshell能完整输出超过255个字符的字符串。
2。select 时,检索速度是与from后的 TABLE顺序有关,还是与where条件的顺序有关(TABLE数据多少 )
在系统属性设定里有个选项,可以修改单字段输出字数限制. ......