[英]Extracting a portion of a string in SQL
I am facing challenges in extracting a portion of string in SQL:我在提取 SQL 中的一部分字符串时面临挑战:
Example being: I have to extract from the below string:示例是:我必须从以下字符串中提取:
VAGGRAWA
from PAYPAL *VAGGRAWA 4029357733
VAGGRAWA
的PAYPAL *VAGGRAWA 4029357733
VAGGRAWA
from PAYPAL *VAGGRAWA8 4029357733
VAGGRAWA
PAYPAL *VAGGRAWA8 4029357733
VAGGRAWA
from PAYPAL VAGGRAWA8 4029357733
VAGGRAWA
的PAYPAL VAGGRAWA8 4029357733
Can someone help me with a SQL formula to get this done?有人可以用 SQL 公式帮我完成这项工作吗?
(regexp_match(col, '^PAYPAL \*?([^ ]*) '))[1]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.