tags:

views:

234

answers:

2

Hi all,

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 sytnax)?

A: 
UPDATE
    myTable
SET
    ColC = CONCAT('[', ColA, '][', ColB, ']')
--WHERE...
David Hedlund
A: 
UPDATE table SET ColC = CONCAT("[", ColA, "][", ColB, "]");
Select0r