In MySQL, I have a text column with “bla bla bla YYY=76767 bla bla bla”.
I need to cut the number 76767.
How can I do it in SQL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
to get the first token after the
=.This returns
76767.This works in two steps :
returns the string starting after the
=and
get the first element of the virtual array you’d got from a split by ” “, and so returns the first token of xxx.