note 89854 deleted from function.mysql-fetch-assoc by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Mar 2009 23:21:27 +0000 |
| Subject: | note 89854 deleted from function.mysql-fetch-assoc by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152456@lists.php.net to get a copy of this message | ||
Note Submitter: Charles
----
> If anyone can find a faster way to do this, I'd be glad to know about it...
You can do this directly in a query, without involving PHP at all.
INSERT INTO tbl_target(col1, col2, ...)
SELECT col1, col2, ... FROM tbl_source
WHERE ...