Search Postgresql Archives

column aliases?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 !!!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux