How do I concatenate in ALTER TABLE?
I tried this, but it didn’t work:
$sql1="ALTER TABLE t1 ADD iod = CONCAT('10.1234','/',id)";
id is a different column in the same table.
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.
You’re misusing
ALTER TABLE. It is intended to modify the data definition (structure) of a table, not its values.If you want to modify the values in a table, you should use one of the following types of queries: