Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How do I know one table's primary key field value (eg ID) is used in any another related tables in MySQL?
Please help me.
You have to know the structure of your database. Then you can do something like
select * from your_table where id in ( select id from ref_table1 union select id from ref_table2 union select id from ref_table3 )