Book Contents

Book Index

Next Topic

Home

Using Temporary Tables

You can use the CREATE TEMPORARY TABLE in the SQL Reference Manual to implement certain queries using multiple steps. In other words, you can:

  1. create one or more temporary tables
  2. execute queries and store the result sets in the temporary tables
  3. execute the main query using the temporary tables as if they were a normal part of the logical schema

The name "temporary table" may seem like a misnomer. Only the data stored in the table is temporary. The metadata is persistent.

Notes