Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Search for the table in a Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-04-03, 19:55
mikeshn mikeshn is offline
Registered User
 
Join Date: Jun 2003
Posts: 5
Search for the table in a Database

If I'm login to MySQL and want to find certain table, but I have no idea where the table is located (in what database).

How can I search for a table in mysql ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-06-03, 22:59
qha_vn qha_vn is offline
Registered User
 
Join Date: Jan 2003
Location: Vietnam
Posts: 188
you wanna search for a table programatically or manually?
__________________
qha_vn
Reply With Quote
  #3 (permalink)  
Old 07-13-03, 02:45
GerryKing GerryKing is offline
Registered User
 
Join Date: Jul 2003
Location: SouthWest USA
Posts: 7
Re: Search for the table in a Database

Quote:
Originally posted by mikeshn
If I'm login to MySQL and want to find certain table, but I have no idea where the table is located (in what database).

How can I search for a table in mysql ?

Thanks

Brute force way -- show databases;
Then for each database returned --
use "one of the returned database";
show tables;
Reply With Quote
  #4 (permalink)  
Old 07-13-03, 06:00
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can try
Code:
show tables like 'your table name'
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On