0

I want to make a postgresql query which removing characters. For example, my datas are like this;

John Smith https://john.smith.com
Allen Paul https://allen.paul.com

I want to remove characters which start with https. I want to see in the final like this;

John Smith
Allen Paul

Can anybody help me. Thanks...

1 Answer 1

3

split_part is good for this:

t=# select split_part('Allen Paul https://allen.paul.com',' https://',1);
 split_part
------------
 Allen Paul
(1 row)

Time: 1.370 ms
Sign up to request clarification or add additional context in comments.

1 Comment

That's it! Thank you soo much.

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.