Re: insert retrieved data into a new table

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: insert retrieved data into a new table
Date: 2011-04-24 21:29:39
Message-ID: ip24nj$viu$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Gurjeet Singh wrote on 24.04.2011 23:22:

> CREATE TABLE new_table
> AS
> SELECT col1, col2, col3
> FROM some_table
> WHERE ...
>
> This is the syntax I always use, but I have just realized that it not documented in the manual...
>
>
> It sure is:
>
> http://www.postgresql.org/docs/9.0/static/sql-createtableas.html
>
> It should be merged into the CREATE TABLE doc, IMHO.
>

Ah! Thanks, I was only looking at the CREATE TABLE syntax :)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Marc-André Laverdière 2011-04-25 13:36:31 Re: SSL root.crt not loading
Previous Message Gurjeet Singh 2011-04-24 21:22:42 Re: insert retrieved data into a new table