如何在sql server中获取所有需要的子串 [英] How to get all desired substrings in sql server
本文介绍了如何在sql server中获取所有需要的子串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取CSV格式的所有字符串,这些字符串由sql server中的$$$符号括起来。
如果我有一个字符串为
亲爱的$$$姓名$$$您的组织是$$$组织$$$
我的输出需要如
(姓名,组织)
可以有任意数量的$$$封闭字符串我的输入字符串,这个解决方案是在SQL中。
请指教。 sql server中的Thanx
How do i get all the strings in CSV format which are enclosed by $$$ symbols in sql server.
IF i have a string as
Dear $$$Name$$$ your organization is $$$Organization$$$
my output needs to be like
(Name,Organization)
there can be any number of $$$ enclosed strings in my input string and this solution is to be in SQL.
Please advice. Thanx
推荐答案
符号。
如果我有一个字符串为
亲爱的
symbols in sql server.
IF i have a string as
Dear
名称
您的组织
这篇关于如何在sql server中获取所有需要的子串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文