Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Posts
    4

    Question Unanswered: 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.

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •