PDA

View Full Version : database question - perhaps using phpmyadmin


chris1979
11-22-2006, 04:02 PM
Hi,

I want to duplicate a field in my database. Whatever the user has put in field2, I want that to also be added into field5.

Is there a simple command I can run in phpmyadmin?

Chris

CyberAlien
11-24-2006, 07:31 PM
UPDATE table_name SET field5 = field2;

chris1979
11-29-2006, 02:55 PM
That's so simple I now feel incredibly dumb for having to ask. ;)