AW: Inserting a select statement result into another ta ble

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: Inserting a select statement result into another ta ble
Дата
Msg-id 11C1E6749A55D411A9670001FA6879633680A2@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: Inserting a select statement result into another ta ble  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: AW: Inserting a select statement result into another ta ble  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: AW: Inserting a select statement result into another ta ble  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: ALTER TABLE DROP COLUMN
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: ALTER TABLE DROP COLUMN