DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   MySQL (http://www.daniweb.com/forums/forum126.html)
-   -   Scan all tables nfor some variables (http://www.daniweb.com/forums/thread125247.html)

stonyheng May 20th, 2008 11:56 pm
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

jemajoign May 21st, 2008 2:28 pm
Re: Scan all tables nfor some variables
 
What do you mean when you say you want to find out "how many tables actually have the same variable as the key table?"

tesuji May 21st, 2008 2:46 pm
Re: Scan all tables nfor some variables
 
Hi again,

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

krs,
tesu


All times are GMT -4. The time now is 11:37 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC