pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Quick Question Please
5+ messages / 5 participants
[nested] [flat]

* Quick Question Please
@ 2003-12-18 20:30  Terry Hampton <thampton@limacorp.com>
  0 siblings, 3 replies; 5+ messages in thread

From: Terry Hampton @ 2003-12-18 20:30 UTC (permalink / raw)
  To: pgsql-admin


	All,

	Seem to be having a brain lock.

	What is the method or syntax to return
	a list of  column names for a given table name ?

	many thanks for your quick help,
	Terry



-- 
Terry L. Hampton
Program Manager
LimaCorp, LLC.  www.limacorp.com
513.587.1874





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Quick Question Please
@ 2003-12-18 20:33  Sergio Pili <sergio.pili@spm.com.ar>
  0 siblings, 0 replies; 5+ messages in thread

From: Sergio Pili @ 2003-12-18 20:33 UTC (permalink / raw)
  To: Terry Hampton <thampton@limacorp.com>; pgsql-admin

In psql:

\d [table name]

Regards,

Sergio Pili


> -----Mensaje original-----
> De:	Terry Hampton [SMTP:thampton@limacorp.com]
> Enviado el:	Jueves 18 de Diciembre de 2003 17:31
> Para:	pgsql-admin@postgresql.org
> Asunto:	[ADMIN] Quick Question Please
> 
> 
> 	All,
> 
> 	Seem to be having a brain lock.
> 
> 	What is the method or syntax to return
> 	a list of  column names for a given table name ?
> 
> 	many thanks for your quick help,
> 	Terry
> 
> 
> 
> -- 
> Terry L. Hampton
> Program Manager
> LimaCorp, LLC.  www.limacorp.com
> 513.587.1874
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Quick Question Please
@ 2003-12-18 20:41  Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
  parent: Terry Hampton <thampton@limacorp.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Sam Barnett-Cormack @ 2003-12-18 20:41 UTC (permalink / raw)
  To: Terry Hampton <thampton@limacorp.com>; +Cc: pgsql-admin

In psql, do

\d table_name

It will tell you about all columns, indexes, and constraints.

On Thu, 18 Dec 2003, Terry Hampton wrote:

>
> 	All,
>
> 	Seem to be having a brain lock.
>
> 	What is the method or syntax to return
> 	a list of  column names for a given table name ?
>
> 	many thanks for your quick help,
> 	Terry
>
>
>
>

-- 

Sam Barnett-Cormack
Software Developer                           |  Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk)  |  Lancaster University



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Quick Question Please
@ 2003-12-18 20:42  Bruno LEVEQUE <bruno.leveque@net6d.com>
  parent: Terry Hampton <thampton@limacorp.com>
  2 siblings, 0 replies; 5+ messages in thread

From: Bruno LEVEQUE @ 2003-12-18 20:42 UTC (permalink / raw)
  To: Terry Hampton <thampton@limacorp.com>; +Cc: pgsql-admin

A solution :

in psql :

\d YourTable




Terry Hampton wrote:

>
>     All,
>
>     Seem to be having a brain lock.
>
>     What is the method or syntax to return
>     a list of  column names for a given table name ?
>
>     many thanks for your quick help,
>     Terry
>
>
>

-- 
Bruno LEVEQUE
System Engineer
SARL NET6D
bruno.leveque@net6d.com
http://www.net6d.com





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Quick Question Please
@ 2003-12-18 20:44  charlie derr <cderr@simons-rock.edu>
  parent: Terry Hampton <thampton@limacorp.com>
  2 siblings, 0 replies; 5+ messages in thread

From: charlie derr @ 2003-12-18 20:44 UTC (permalink / raw)
  To: Terry Hampton <thampton@limacorp.com>; +Cc: pgsql-admin

 From a psql prompt:


\d <tablename>

	good luck,
		~c


Terry Hampton wrote:
> 
>     All,
> 
>     Seem to be having a brain lock.
> 
>     What is the method or syntax to return
>     a list of  column names for a given table name ?
> 
>     many thanks for your quick help,
>     Terry
> 
> 
> 


-- 
if i top posted, i probably did it on purpose, and yes i know my lines 
might trail out the right end of your mail viewer/client (but only if 
you have an inadequate one)




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2003-12-18 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-18 20:30 Quick Question Please Terry Hampton <thampton@limacorp.com>
2003-12-18 20:41 ` Sam Barnett-Cormack <s.barnett-cormack@lancaster.ac.uk>
2003-12-18 20:42 ` Bruno LEVEQUE <bruno.leveque@net6d.com>
2003-12-18 20:44 ` charlie derr <cderr@simons-rock.edu>
2003-12-18 20:33 Re: Quick Question Please Sergio Pili <sergio.pili@spm.com.ar>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox