Copying specific fields from table to table

From: Date: Mon, 25 Feb 2008 04:37:14 +0000
Subject: Copying specific fields from table to table
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-270022@lists.php.net to get a copy of this message
I've got 2 tables. One table which contains a series of barcodes assigned to product id #'s, and another table with JUST product id #'s. I need to somehow transfer all the barcodes from the first table into the second table, but only where the id #'s match. Can anyone tell me if this is something that can be done with just a SQL statement, or do I need to write a PHP script to loop through the records of both tables and do the copying/mapping?

« previous php.general (#270022) next »