referencing column names properly

Поиск
Список
Период
Сортировка
От Sill-II, Stephen
Тема referencing column names properly
Дата
Msg-id 4BAE87828F06EB45B2641B83D370350F45E4@ostex002.ad.ost.dot.gov
обсуждение исходный текст
Ответы Re: referencing column names properly  (Bruno Wolff III <bruno@wolff.to>)
Re: referencing column names properly  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список pgsql-sql
I have a table called logs with several columns whose names have '-' in
them, e.g.   User-Name

I'm having trouble referencing these columns with SELECT statements.

What would the proper way to address these in a statement like this?

SELECT User-Name, max(Date), max(Time) from logs;

I want to return the last login date and time for each username.

Thanks
Stephen Sill II


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

Предыдущее
От: "John Cavacas"
Дата:
Сообщение: Re: query help/sugestions
Следующее
От: Roberto Mello
Дата:
Сообщение: Re: query help/sugestions