Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server SSRS SQL Serve-从字符串中提取中间信息_Sql Server_Reporting Services_Ssrs 2008 R2_Reportbuilder3.0 - Fatal编程技术网

Sql server SSRS SQL Serve-从字符串中提取中间信息

Sql server SSRS SQL Serve-从字符串中提取中间信息,sql-server,reporting-services,ssrs-2008-r2,reportbuilder3.0,Sql Server,Reporting Services,Ssrs 2008 R2,Reportbuilder3.0,我在SSRSSQLServer工作 我有几个不同的字符串,我想提取信息 示例: /功能/所有测试/访问/登录.feature /功能/所有测试/显示/反应页面/反应结果显示.feature 我想删除第三个“/”之前和最后一个/ 结果将是: 通道 显示/反应页面 我用下面的方法得到最后一份 ,反转(左(反转(测试[path]),charindex('/',反转(测试[path]))-1)) 我还使用了下面的补充信息 ,substring(tests.[path], CharIndex('/', (

我在SSRSSQLServer工作

我有几个不同的字符串,我想提取信息

示例: /功能/所有测试/访问/登录.feature /功能/所有测试/显示/反应页面/反应结果显示.feature

我想删除第三个“/”之前和最后一个/

结果将是: 通道 显示/反应页面

我用下面的方法得到最后一份 ,反转(左(反转(测试[path]),charindex('/',反转(测试[path]))-1))

我还使用了下面的补充信息

,substring(tests.[path],
CharIndex('/', (tests.[path]), 11)+1, 
(CharIndex('/',((substring(tests.[path], 
CharIndex('/', (tests.[path]), 12)+1, 77))),1)-1))

我可以围绕它做任何事情,但不能让它结合起来

你可能想在这篇文章上引用它

它应该能回答你的问题。 找到位置并使用连接