Connecting Tech Pros Worldwide Help | Site Map

Build MySQL table with a query

  #1  
Old July 17th, 2005, 10:20 AM
Jeremy Ross
Guest
 
Posts: n/a
Hello,

I am looking for a function that will build a mysql table with the
results of a query.

If you could help that would be great,
Thanks,
Jeremy Ross
  #2  
Old July 17th, 2005, 10:20 AM
Brommer
Guest
 
Posts: n/a

re: Build MySQL table with a query


Jeremy Ross wrote:[color=blue]
> Hello,
>
> I am looking for a function that will build a mysql table with the
> results of a query.[/color]

Not sure if this is what you need, but you can do it directly in SQL:

CREATE TABLE newtable AS
SELECT * FROM oldtable;
  #3  
Old July 17th, 2005, 10:20 AM
Jeremy Ross
Guest
 
Posts: n/a

re: Build MySQL table with a query


Thank you that was just what I needed.

Brommer wrote:
[color=blue]
> Jeremy Ross wrote:
>[color=green]
>> Hello,
>>
>> I am looking for a function that will build a mysql table with the
>> results of a query.[/color]
>
>
> Not sure if this is what you need, but you can do it directly in SQL:
>
> CREATE TABLE newtable AS
> SELECT * FROM oldtable;[/color]
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading files into a MySQL database using PHP Atli insights 69 October 19th, 2009 08:24 PM
PHP MYSQL Table help Dave answers 4 March 27th, 2008 09:55 PM
MySQL 4.0.14 has been released Lenz Grimmer answers 0 July 19th, 2005 11:45 PM
Need help with gallery script I am writing A answers 1 July 17th, 2005 04:56 AM