From: | "Richard Huxton" <dev(at)archonet(dot)com> |
---|---|
To: | "Roy Souther" <roy(at)silicontao(dot)com>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: SELECT * INTO TABLE is not working for me. |
Date: | 2001-05-31 10:52:48 |
Message-ID: | 007e01c0e9bf$d6444e80$1001a8c0@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
From: "Roy Souther" <roy(at)silicontao(dot)com>
> I am testing my SQL commands in pgaccess before I put them into my C++
code.
> Trying to copy a table using...
> SELECT * INTO TABLE copy_stuff FROM the_stuff
>
> It creates the view but no table called copy_stuff exists after I run it.
Why?
> I can use...
> CREATE TABLE copy_stuff AS SELECT * FROM the_stuff
> that works and makes a new table, but it causes other problems with the
> clients that this app is running from. I would like to make the SELECT *
INTO
> work. Any idea?
Works here - can you give version info etc?
richardh=> select * into table foo2 from foo;
SELECT
richardh=> select * from foo2;
a | b
---+----------------------------------
4 | Jack Smith
5 | Andrea Ottwick
(2 rows)
- Richard Huxton
From | Date | Subject | |
---|---|---|---|
Next Message | datactrl | 2001-05-31 11:24:31 | question about PL/pgSQL function |
Previous Message | Koen Antonissen | 2001-05-31 09:03:59 | RE: primary key scans in sequence |