Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Field Alias Alternative


  • From: "Bart Degryse" <Bart(dot)Degryse(at)indicator(dot)be>
  • To: <pgsql-sql(at)postgresql(dot)org>
  • Subject: Field Alias Alternative
  • Date: Tue, 29 Apr 2008 09:20:35 +0200
  • Message-id: <4816E863.A3DD.0030.0@indicator.be> <text/plain>

Is there another way to quote a field alias (containing spaces) than with double quotes?
 
This works:
SELECT actions.addresstypes.addresstype AS "Address Type" FROM actions.addresstypes
 
I would like something like this
SELECT actions.addresstypes.addresstype AS [Address Type] FROM actions.addresstypes
 
Is that possible?
Thanks for any ideas.


Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group