Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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
concat
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
select concat(family,' and one sister') as family from your table
Add a comment
Required, but never shown
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.
Explore related questions
See similar questions with these tags.
concat? like this w3schools.com/sql/func_mysql_concat.asp