From: "Roy Souther" <roy@silicontao.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 Smith5 | Andrea Ottwick
(2 rows)
- Richard Huxton