INSERT INTO table_2 SELECT * FROM table_1 WHERE condition

or

CREATE TABLE table_2 SELECT * FROM table_1 WHERE condition
if your table_2 is not yet created

Regards,
Tadej


----- Original Message -----
From: "Eldon Ziegler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 3:55 PM
Subject: Select results to new table?


> Is there a way to put the results of a SELECT into a table without going
> through an export file? For example, something like
> SELECT * FROM table_1 WHERE condition INTO table_2
>
>
> Eldon Ziegler
> ProAtion Systems
> [EMAIL PROTECTED]
> http://www.proation.com
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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