Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: How to get database metadata information (i.e. existing tablesandcolumns in tables)

Reply
Thread Tools

RE: How to get database metadata information (i.e. existing tablesandcolumns in tables)

 
 
Tim Golden
Guest
Posts: n/a
 
      08-22-2006
[Chris Brat]

| Is it possible to retrieve details about the database, specifically a
| list of the tables in the database; and then to retrieve the columns
| and their types for the tables?
|
| Is this dependant on the database?

In effect it's dependent on the database. We're assuming you're
talking about a relational databases for a start, since other
databases don't necessarily even have tables. The major databases
may support the INFORMATION_SCHEMA standard (random link:
http://www.devx.com/getHelpOn/10MinuteSolution/20561) but they
may not -- I don't think sqlite does, for example -- and their
implementations may well vary etc.

In short, try INFORMATION_SCHEMA first. Failing that, look
at the specific db docs for the gen.

TJG

__________________________________________________ ______________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
__________________________________________________ ______________________
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Database Database Database Database scott93727@gmail.com Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
How to get database metadata information (i.e. existing tables and columns in tables) Chris Brat Python 5 08-22-2006 05:25 PM
Schema Metadata not a Metadata Schema Brett Selleck XML 1 09-04-2003 05:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57