0

I have a table like this for example:

id, first_name, last_name
1, James, Anderson
2, William, Davis
3, Ethan, Walsh

I would like to add a prefix to their first names,
So it will looks like this:

id, first_name, last_name
1, EXT-James, Anderson
2, EXT-William, Davis
3, EXT-Ethan, Walsh

So basically I want to add the value 'EXT-' to the first_name column
Is there any way to do it ?

2 Answers 2

3
update the_table
  set first_name = 'EXT-'||first_name;
Sign up to request clarification or add additional context in comments.

Comments

0
SELECT 'EXT-' || first_name FROM YourTable

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.