how do i do this in mysql 5.5? Was thinking concat but I think there’s something simpler.
id content
1
2
update posts set content='here is content ' + this.id
so that:
id content
1 here is content 1
2 here is content 2
thx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This does what you need:
Here is a link to a test on SQLFiddle.