sql 2008中的字符串拆分 [英] string split in sql 2008
本文介绍了sql 2008中的字符串拆分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个字符串''and Location =''''和itemcode =''''''
我想将其拆分并在两个不同的变量中获取Location =''''和itemcode ='''''',并检查每个字段的值是否为空值,就像我正在检查表列一样.
我该怎么办?
在此先感谢,
问候.
Hello All,
I have a string ''and Location='''' and itemcode='''' ''
i want to split this and get Location='''' and itemcode='''' in two different variables and check the value of each field for null values as if i am checking a table column.
How can i do this?
Thanks in Advance,
Regards.
推荐答案
提示:尝试并使用String.Split
进行 ^ ].
您也可以使用正则表达式,但是在使用正则表达式之前必须熟悉它.
Hint: Try and useString.Split
to do this[^].
You can use Regular Expressions too, but you must become familiar with the Regular Expression concept before going into use it.
这篇关于sql 2008中的字符串拆分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文