PDA

View Full Version : Query help needed.


Parker Clack
11-04-2006, 09:27 PM
I am wanting to copy a column in one table to another table.

Specially I am wanting to copy the data in table userfield2 column fileld15 to table userfield column15.

Any help would be appreciated.

Thanks,
Parker

Zachariah
11-18-2006, 12:48 AM
UPDATE userfield
INNER JOIN userfield2 on userfield.userid = userfield2.userid
SET userfield.field15 = userfield2.field15;

This will:
update table userfield fileld15 with data from table userfield2 fileld15

Adrian Schneider
11-18-2006, 12:58 AM
One typo in there - "INNTER" should be "INNER".

Zachariah
11-18-2006, 01:02 AM
One typo in there - "INNTER" should be "INNER".

I seen and fixed that :D.
- I forgot to hit preview.

Parker Clack
11-18-2006, 01:24 PM
Thanks for the help.

Parker