From: | Andrew Magnus <xanadian99(at)yahoo(dot)com> |
---|---|
To: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Getting a list of tables in a database with Perl |
Date: | 2002-11-20 00:23:32 |
Message-ID: | 20021120002332.9821.qmail@web21505.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I am, actually, using DBI. I'm using Postgres on Linux with Perl 5.8. What I'm trying to do is this: the script checks to see if a table exists in the database, and if it doesn't, it creates it. It then carries the name of the table in a $variable for use with inserting, etc. That's it. Thanks. --andrew: --are you looking for just a list of tables, or, are you trying--to do something with the tables (insert / update / copy / etc)?--also, what database are you using and on what platform? --you may end up installing and using a DBI::DBD module. --i am running PostgreSQL on a Linux platform ... if i can help,--just post again and i'll submit the few examples i have. --laters! -X -----Original Message-----
From: Andrew Magnus [mailto:xanadian99(at)yahoo(dot)com]
Sent: Tuesday, November 19, 2002 4:53 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Getting a list of tables in a database with Perl
I would like to know how I can fetch a list of existing tables in a database within a Perl script. Could someone please tell me how this can be done, or, at least, a good reference to look it up? Thanks.
---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
From | Date | Subject | |
---|---|---|---|
Next Message | Charles H. Woloszynski | 2002-11-20 01:22:31 | Re: Enterprise readiness - mirroring / incremental backup |
Previous Message | Doug McNaught | 2002-11-19 23:20:01 | Re: select where expr in - result order? |