0

How would I go about "adding" data to existing data in a column?

For an example: I have values

Mary has 2 brothers

in column "family", now I want to ADD

and one sister

to "family" in order to have

Mary has 2 brothers and one sister

1

1 Answer 1

2

If I understand your question clearly, I guess you need concat function in update statement like this :

update your_table
set family = concat(family,' and one sister')
where id = 'blabla'

And this is for select statement :

select concat(family,' and one sister') as family
from your table
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.