Re: (no subject)

François Girault <francois.girault-ZQ1FT/[email protected]> Mon, 16 Aug 2004 17:20:34 +0000
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Blyth A J C (Comp) wrote:

> I am trying execute the following and keep getting an error.
>
> self._query = “\d syslogdb”
>
> com.execute(self.query)
>
> What I can to do is to write a little program in python that will get 
> a description (type definition) for a table. - HELP
>
> Andrew
>
try :

SELECT * from pg_tables

and dig in table named with pg_ prefix


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285