[PHP] duplicating a row

2004-05-31 Thread Bob Lockie
I want to duplicate a row (back it up - copy to a table with the same 
schema) regardless of the table schema.
This in MySQL but I need a solution that can be made easily portable to 
other databases.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] duplicating a row

2004-05-31 Thread Daniel Clark

INSERT INTO new_table (column1, column2, ...)
SELECT column1, column2, ...
FROM original_table

I want to duplicate a row (back it up - copy to a table with the same 
schema) regardless of the table schema.
This in MySQL but I need a solution that can be made easily portable to 
other databases.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php