Skip site navigation (1) Skip section navigation (2)

Re: select into vs. create as

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oskar Stolc <stolc(at)intrak(dot)sk>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: select into vs. create as
Date: 2001-12-03 22:32:10
Message-ID: 19637.1007418730@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Oskar Stolc <stolc(at)intrak(dot)sk> writes:
> Are these two commands equivalent ?

Yes.

I recommend CREATE AS, though.  plpgsql thinks that SELECT INTO
means something quite different, so you'll inevitably get confused
later on if you use SELECT INTO :-(

			regards, tom lane

In response to

pgsql-novice by date

Next:From: hodgesDate: 2001-12-04 01:15:05
Subject: postgres home directory
Previous:From: BurraDate: 2001-12-03 22:29:56
Subject: binary Tuples

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