0

I have column in my table with data type varchar And that value is like a tag Example :

 <> e2=“69”  su=“58” fu=“55” <\>

I want search and find ‘su’ value and replace in that column

1 Answer 1

1

I think this is what you are looking for: http://www.postgresqltutorial.com/regexp_replace/

In this case you will want to use something like

SELECT REGEXP_REPLACE(string, 'su="\d{2}"', 'su="value"')

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.