1

I want to append a String to a value in a table something like Before Query value = 451,654 After Executing Query It Should Be = 451,654,456

UPDATE `orders` SET `instalments`= ??? WHERE `order_id`= 24

What Should I Replace The Questions Marks '???' with In The Above Query To Achieve The Desired Result?

1
  • What is the data type of instalments and what is the purpose of the result? Commented Jul 17, 2016 at 16:54

1 Answer 1

3

If the column are string you should use concat

UPDATE orders 
SET instalments = concat(instalments , ',456')
WHERE order_id = 24
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.