* Jan Steinman 
> Is there a simple way to duplicate one or more rows in a table?
> 
> I tried:
> 
>   INSERT INTO table SELECT * FROM table WHERE criteria
> 
> but apparently INSERT...SELECT cannot function on the same table.

Right, but you can use an intermediate temporary table:

CREATE TEMPORARY TABLE tmp1 SELECT * FROM table WHERE criteria
INSERT INTO table SELECT * from tmp1

-- 
Roger
sql

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to