954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Scan all tables nfor some variables

hi all,

Is there a code where i can check from all the existing tables if a certain variables exist in it? I am currently working on a project but the tables are not linked properly, having a hard time trying to find out how many tables actually have the same variable as the key table.

Thanx

stonyheng
Newbie Poster
4 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

What do you mean when you say you want to find out "how many tables actually have the same variable as the key table?"

jemajoign
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Hi again,

you need to query the system tables (dictionary/catalogue) of MySql. Start with columns table.

krs,
tesu

tesuji
Master Poster
721 posts since Apr 2008
Reputation Points: 158
Solved Threads: 98
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You