The stupid question is the question not asked | |
PerlMonks |
Re: Re: How to display all the content of the database?by Alex the Serb (Monk) |
on Jan 09, 2003 at 12:29 UTC ( [id://225513]=note: print w/replies, xml ) | Need Help?? |
Hi, sector(s_id, d_id, name); department(d_id, dd_id, name); division(dd_id, ... , name); ... ... ... goes for unknown depth. I thought that it have something to do with data dictionary, but can it be done using DBI. DBI is independent of database, does DBI have some part that addresses common things of every data dictionary, like geting informations about relations between tables, informations about primary and foreign keys ... Am I more specific now? Some people did this, but they charge money for this! Anyway, I tried this but using Perl's Pg modul for PostgreSQL. There is table pg_databases, pg_tables and stuff like that from which you can determine some of stuff, but can it be done using DBI and MySQL. And it have to be general. UPDATE: If the company add some new relation that is in relationship with another one, it should be displayed without changing the script.
In Section
Seekers of Perl Wisdom
|
|