in reply to Re: How to display all the content of the database?
in thread How to display all the content of the database?
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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: How to display all the content of the database?
by herveus (Prior) on Jan 09, 2003 at 12:43 UTC | |
by Alex the Serb (Monk) on Jan 09, 2003 at 12:52 UTC | |
by herveus (Prior) on Jan 09, 2003 at 13:00 UTC | |
by Alex the Serb (Monk) on Jan 09, 2003 at 13:03 UTC | |
by herveus (Prior) on Jan 09, 2003 at 13:11 UTC | |
| |
Re: Re: Re: How to display all the content of the database?
by davorg (Chancellor) on Jan 09, 2003 at 12:40 UTC |
In Section
Seekers of Perl Wisdom