pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SELECT FROM SELECT
2+ messages / 2 participants
[nested] [flat]

* SELECT FROM SELECT
@ 2001-01-19 12:23 Aleksey V. Kurinov <leks@datanaut.com>
  2001-01-19 15:43 ` Re: SELECT FROM SELECT Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Aleksey V. Kurinov @ 2001-01-19 12:23 UTC (permalink / raw)
  To: pgsql-sql

Hi, All !!

Does Postrges provide "Select * from Select * from t1" construction ?

I use Postrges v.7.0.3 and get
 "ERROR:  parser: parse error at or near "select" response for such request.

Thanks, Leksey





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: SELECT FROM SELECT
  2001-01-19 12:23 SELECT FROM SELECT Aleksey V. Kurinov <leks@datanaut.com>
@ 2001-01-19 15:43 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2001-01-19 15:43 UTC (permalink / raw)
  To: Aleksey V. Kurinov <leks@datanaut.com>; +Cc: pgsql-sql

"Aleksey V. Kurinov" <leks@datanaut.com> writes:
> Does Postrges provide "Select * from Select * from t1" construction ?

In 7.1.

But you have to spell it per the SQL spec:

	select * from (select * from t1) as foo;

The parentheses and alias name are not optional.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-19 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-19 12:23 SELECT FROM SELECT Aleksey V. Kurinov <leks@datanaut.com>
2001-01-19 15:43 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox