Copying a set of database records

From: Date: Fri, 04 Mar 2005 15:49:10 +0000
Subject: Copying a set of database records
Groups: php.db 
Request: Send a blank email to php-db+get-38769@lists.php.net to get a copy of this message
A sort of similar question to my last one: I have a table with about 100 records all related to one product. I want to create a new product, based on the details from the old product. So in PHP, I would fetch the 100 records, alter the productID, and then insert it 100 in 100 separate SQL queries. Is there any way I can do this in one SQL query, somehow using a combination of insert and select? Thanks in advance! Steve

« previous php.db (#38769) next »