select particular columns in query
| From: | blackwater dev | Date: | Wed, 08 Dec 2004 15:46:44 +0000 |
| Subject: | select particular columns in query | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37643@lists.php.net to get a copy of this message | ||
Hello,
I want to create a new row in the db by copying an existing one. My
db has an auto incrementing id so I can't simply do insert into cars
select * from cars where id=$id as this throws the primary key error.
How can I do this with out specifying each column?
Thanks!