column aliases?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема column aliases?
Дата
Msg-id 482E80323A35A54498B8B70FF2B8798004220EE7B4@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: column aliases?
Список pgsql-general

Hi:

 

Does PG support the notion of a colum alias?  I’m not talking about “select foo as fii....”, I’m thinking more along the lines of supporting 2 different names for the same column.   For example, a tablle has a column named “social_security_number”.  Queries may ask for this column as defined (“social_security_number”) but some may ask for is using “ssn”. 

 

Is there a way to assign 2 different names for the same column to support a situation like above?

 

I was thinking that a view might do this, but is not a direct table query.  It’s also not editable.

 

Thanks for any help !!!

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Cache lookup error
Следующее
От: Vick Khera
Дата:
Сообщение: Re: PGconn gets frozen ocassionally after select() timeout