"Mike D'Agosta" wrote: >Hi, > > I have a number of empty tables and I want to get the column names and >data types
withan SQL statement. I want to do this procedurally, not >interactively (so I can't use \d <tablename> in psql).
Postgresdoesn't >support DESCRIBE... is there any other way to do this?
If you run psql with the -E option, it will show you the query it
uses when you type `\d+`. Use that query in your procedural code.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
======================================== "My little children, let us not love in word, neither in tongue; but in
deedand in truth." I John 3:18