Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find table dependencies in mysql

Tags:

database

mysql

I created a table which contains both primary as well as foreign keys. Now i wants to know what are the tables which refers my table element as foreign key.

For example, student is a table which contains id (primary key), name element. And standard is an another table which contains class_id (primary key), and stud_id (Foreign key refers student table id field). When i give student table and id field as input, it returns standard table as output. Please suggest me how can i achieve this???

like image 493
Bathakarai Avatar asked Jan 31 '26 04:01

Bathakarai


1 Answers

Well here is the link of solution of your problem.

How do I see all foreign keys to a table or column?

mysql innodb: describe table does not show columns references, what does show them?

check it.

like image 126
Code Lღver Avatar answered Feb 02 '26 17:02

Code Lღver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!