AW: Inserting a select statement result into another ta ble

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: AW: Inserting a select statement result into another ta ble
Date: 2000-10-13 07:53:20
Message-ID: 11C1E6749A55D411A9670001FA6879633680A2@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > > He does ask a legitimate question though. If you are
> going to have a
> > > LIMIT feature (which of course is not pure SQL), there
> seems no reason
> > > you shouldn't be able to insert the result into a table.
> >
> >
>
> This is an interesting idea. We don't allow ORDER BY in
> INSERT INTO ...
> SELECT because it doesn't make any sense, but it does make sense if
> LIMIT is used:

An "order by" also makes sense if you want to create a presorted table
for faster access. I don't see why we should disallow it.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-10-13 08:06:03 AW: AW: ALTER TABLE DROP COLUMN
Previous Message Zeugswetter Andreas SB 2000-10-13 07:42:10 AW: AW: ALTER TABLE DROP COLUMN