1
Let’s assume I have a database with only 50 tables.
In the structure, I have several connections, several foreign keys.
There is a way, so to make a query that brings the amount of dependencies of all tables in the database ?
For example:
- Table ZZZ has FK of table XXX and YYY
- Table XXX has FK from WWW table
- The WWW table has no FK
Expected result:
tabela | dependencias
ZZZ | 2
XXX | 1
WWW | 0
yes, which database?
– Ricardo Pontual
Dude... anyone... if you can even put in the most common ones: sql-server, mysql, etc... nice that keeps a question already for several... gets a very useful record...
– rbz
via tool in
sql server
you can in the management studio see the dependencies, andmysql
the TOAD has the same function, now as query, I will put as an answer– Ricardo Pontual