AW: Inserting a select statement result into another ta ble - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: Inserting a select statement result into another ta ble
Date
Msg-id 11C1E6749A55D411A9670001FA6879633680A2@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
Responses Re: AW: Inserting a select statement result into another ta ble
Re: AW: Inserting a select statement result into another ta ble
Re: AW: Inserting a select statement result into another ta ble
List 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


pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: ALTER TABLE DROP COLUMN
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: ALTER TABLE DROP COLUMN