Mandatory AS keyword in SELECT statements

Поиск
Список
Период
Сортировка
От
Тема Mandatory AS keyword in SELECT statements
Дата
Msg-id 477900A5.7010700@adeoservices.com
обсуждение исходный текст
Ответы Re: Mandatory AS keyword in SELECT statements  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Hi,

We are currently trying to migrate an Oracle database to PostgreSQL.
Unfortunately, the Java application that access the database does not
use the AS keyword to alias column names in select statements.

Thus, the following statement "SELECT col1 alias1 FROM any_table" fails.

AFAIK, AS is optional according to SQL Standard.
Is there a way to workaround this behaviour, as it will be not possible
for us to modify the application ?
Is there a plan to support this in future PostgreSQL releases ?

I apologize in advance if this question has already been submited, I was
not able to find some threads discussing this point.


Thanks for your help,
Best Regards,
Vincent




Ce message et toutes les pièces jointes sont établis à l'attention exclusive de leurs destinataires et sont
confidentiels.Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur.
L'internetne permettant pas d'assurer l'intégrité de ce message, le contenu de ce message ne représente en aucun cas un
engagementde la part de Adeo Services. 

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

Предыдущее
От: thereverandpdawg
Дата:
Сообщение: How to handle 'not a number' in postgresql
Следующее
От: "O'Shea, Brendan"
Дата:
Сообщение: ERROR: catalog is missing 9 attribute(s) for relid 10297