If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > List of tables in my database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-04, 19:22
howard7890 howard7890 is offline
Registered User
 
Join Date: Nov 2002
Posts: 4
Question List of tables in my database

How can I generate a list of table names from my database.
I have a C# app and I want to get a list of table names from a spacific DB.

DataBase: MyDB
Table1
Table2
Table3

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-30-04, 23:30
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
You'd have to get a bit tricky, since MySQL doesn't store the catalog in tables (Ted Codd wouldn't like that much). You could execute a SHOW TABLES and parse the results yourself.

-PatP
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

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