内联函数,用于字符的第二次出现 [英] in line function for second occurance of the character
本文介绍了内联函数,用于字符的第二次出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字符串
KM2-Angello Calix
在此字符串中,我需要杯状部分,因此请发送查询以提取第三次出现情况
到字符串len的空间
谢谢
ramesh
Hi ,
i have a string
KM2 - Angello Calix
in this string i want calix part so please sent query to extract 3rd occurance
of space to len of string
Thanks
ramesh
推荐答案
您将需要使用SQL中提供的字符串操作函数: ^ ].
您可以使用 SUBSTRING [查找字符串中字符的最后一次出现 [
You will need to use the string manipulation function available in SQL: String Functions (Transact-SQL)[^].
You can use SUBSTRING[^] to retrieve a part of the string.
Here Find last occurence of a character within a string[^] you can find a discussion about finding the last occurrence in a string.
这篇关于内联函数,用于字符的第二次出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文