Perhaps a possible new feature to a future PostgreSQL release

Поиск
Список
Период
Сортировка
От Erki Eessaar
Тема Perhaps a possible new feature to a future PostgreSQL release
Дата
Msg-id AM9PR01MB8268DEDA50C37CB881563E35FEB5A@AM9PR01MB8268.eurprd01.prod.exchangelabs.com
обсуждение исходный текст
Ответы Re: Perhaps a possible new feature to a future PostgreSQL release  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-hackers
Hello

Let me assume that there is a table T with columns a, b, c, d, e, f, g, and h.

If one wants to select data from all the columns except d and e, then one has to write

SELECT a, b, c, f, g, h
FROM T;

instead of writing 

SELECT ALL BUT (d, e)
FROM T;

or something similar (perhaps by using keywords EXCEPT or EXCLUDE).

The more a table has columns, the more one has to write the column names.

There are systems that support this kind of shorthand syntax in SQL:





I think that such syntax would be useful and if more and more DBMS-s start to offer it, then perhaps one day it will be in the SQL standard as well.

What do you think, is it something that could be added to PostgreSQL? 

People are interested of this feature. The following links are just some examples:





Best regards
Erki Eessaar


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: Synchronizing slots from primary to standby
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Perhaps a possible new feature to a future PostgreSQL release