Re: My query table aliases don't exist in my application

Поиск
Список
Период
Сортировка
От Maciek Sakrejda
Тема Re: My query table aliases don't exist in my application
Дата
Msg-id AANLkTinVeH7vHo10GUSG3c412J5H0odEx3gjk6meL7Mh@mail.gmail.com
обсуждение исходный текст
Ответ на Re: My query table aliases don't exist in my application  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: My query table aliases don't exist in my application
Список pgsql-jdbc
Right. Even if you explicitly include the table alias, PostgreSQL
strips it out before sending column metadata, so according to the
server, the column name of

SELECT x.a FROM foo x;

is just "a", not "x.a". The driver is just playing along. If you
really like the alias names, you can use the somewhat perverse

SELECT x.a as "x.a" FROM foo x;

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
www.truviso.com

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: My query table aliases don't exist in my application
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Timing of notice delivery