This page in other versions: Unsupported versions: 7.0

Redirecting SELECT Queries

Any SELECT query can be redirected to a new class

SELECT * INTO TABLE temp FROM weather;
    

This forms an implicit CREATE command, creating a new class temp with the attribute names and types specified in the target list of the SELECT INTO command. We can then, of course, perform any operations on the resulting class that we can perform on other classes.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group