Connecting Tech Pros Worldwide Help | Site Map

Build MySQL table with a query

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 09:20 AM
Jeremy Ross
Guest
 
Posts: n/a
Default Build MySQL table with a query

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, 09:20 AM
Brommer
Guest
 
Posts: n/a
Default 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, 09:20 AM
Jeremy Ross
Guest
 
Posts: n/a
Default 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]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.