Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 8th, 2004, 05:28 PM
Registered User
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Display all tables in a mySql database question

Is there a way to retrieve the table names from a database using MySql and VBScript(ASP Page)?

For example:

I would use the conn method to connect to the database:

  Set conn = Server.CreateObject("ADODB.Connection")

  conn.open= "driver={MySQL ODBC 3.51 Driver};server=localhost;uid=myId;pwd=myPwd;databa se=myDb;Option=16387;"

I don't know the properties to get the names of the tables in the database.

Something like(I'm guessing)

For Each Table in myDB

  Response.Write "<br>" & Table.Name & "<br>"


I've tried to do some searching for the answer, thanks in advance for your help.
Old April 9th, 2004, 04:26 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts

You can query the database for a list of tables.


Take care,


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category SubCategories and two MySQL tables cjp_qld PHP Databases 2 August 29th, 2004 04:14 AM
MySql tables godhsf80 PHP Databases 1 November 26th, 2003 01:27 PM
Locking tables using mySQL fcamilo Beginning PHP 1 June 13th, 2003 12:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.