如何在sql2014中创建可以查询char索引返回的索引的函数或过程,它读取。 [英] How to in sql2014 create function or procedure that can contet of index that char index returns , it read.
本文介绍了如何在sql2014中创建可以查询char索引返回的索引的函数或过程,它读取。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
函数或过程在sql2014中返回charindex`return positon。
function or procedure In sql2014 for return of charindex`return positon.
set @x='<ul><li>NO></li><li>SO</li></ul>'
charindex('li',@x)
例如 li = 10
的索引,现在返回值 index = 10
等于 li
可能吗?动态的任何标签如ul,li,a,变量
感谢您的答案
我尝试过:
未找到结果:(
感谢我的朋友们的答案。
for example index of li = 10
, now return values of index=10
that equal li
possible?dynamic for any tag as ul , li , a , with variable
thanks for answers
What I have tried:
No results found:(
thanks for answers my friends.
推荐答案
你的意思是 SUBSTRING(Transact-SQL) [ ^ ] - 因为如果你这样做......它已经存在了。
如果你不这样做,那么你需要在更好的细节是什么问题。
Do you mean SUBSTRING (Transact-SQL)[^] - becasue if you do...it's already there.
If you don't, then you need to explain in a lot better detail what the problem is.
这篇关于如何在sql2014中创建可以查询char索引返回的索引的函数或过程,它读取。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文