Re: SELECT INTO using Views?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Jeanna Geier" <jgeier(at)apt-cafm(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: SELECT INTO using Views?
Date: 2007-01-09 00:27:56
Message-ID: b42b73150701081627l2b759bcdjb5cc8c5021816014@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/9/07, Jeanna Geier <jgeier(at)apt-cafm(dot)com> wrote:
> Hello List!
>
> I have a question regarding SELECT INTO...
>
> Can it be used with Views? I have a View that is populated (~35,000 rows)
> that I want to create a Table from the data in it....
>
> So, would I be able to copy the data from the View to the Table using the
> SELECT INTO command?

Administrator=# create temp view v as select 'postgresql r0x0r'::text;
CREATE VIEW
Administrator=# create temp table t as select * from v;
SELECT

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Terenzio 2007-01-09 01:20:42 COPY FROM and sequences
Previous Message Joris Dobbelsteen 2007-01-09 00:20:38 Re: Autovacuum Improvements