Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to MySQL.

Status
Not open for further replies.
Jun 20, 2003
40
GB
Is it possible to Query the results of a Query?
 
You could create a temporary table, visible only to the current client, from the results of a query, work on that table to your heart's content, then drop the table (or let it be dropped automatically when the connection closes). For example:

CREATE TEMPORARY TABLE T AS SELECT fields FROM tables WHERE conditions;
...
queries on table T
...
DROP TABLE T;
 
Nice and simple, I thinking a long those lines.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top