I have a table with the following column & value:
ColA = "8765" ColB = "2137"
I would like to update ColB in the same table to the following value:
ColC = "[8765][2137]"
How can I do it using phpmyadmin (meaning just sql syntax)?
Join Stack Overflow to learn, share knowledge, and build your career.
I have a table with the following column & value:
ColA = "8765" ColB = "2137"
I would like to update ColB in the same table to the following value:
ColC = "[8765][2137]"
How can I do it using phpmyadmin (meaning just sql syntax)?
Use only this one! I've tested on the live server.
UPDATE table SET column_name = CONCAT( Column_A, ' ', Column_A );
In between single quotes will add a space. You can remove that if it is not required.