470,810 Members | 1,975 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

SQL command to show only databases that contain a particular table

I have several databases that are used to collect data for different
client-projects. My intention was to collect the data, and administer
mySQL so each client could see only their data. Each of these
databases used to collect data have the same tables. There are other
databases which are available to all the users which contain common
information.

The command "show databases" lists all of the databases (visible to
the particular user) and not the one's I would like to display (the
databases used to collect data). Is there a way to nest a single
mySQL command to show only the databases that have the same particular
table?
Dec 5 '07 #1
1 3740
On Wed, 05 Dec 2007 16:31:37 GMT, judy wrote:
>I have several databases that are used to collect data for different
client-projects. My intention was to collect the data, and administer
mySQL so each client could see only their data. Each of these
databases used to collect data have the same tables. There are other
databases which are available to all the users which contain common
information.

The command "show databases" lists all of the databases (visible to
the particular user) and not the one's I would like to display (the
databases used to collect data). Is there a way to nest a single
mySQL command to show only the databases that have the same particular
table?
Hi Judy,

This group is intended for supporting MS SQL Server users. Since you are
refering to mySQL and mentioning a "show databases" command that SQL
Server doesn't have, I'm going to assume that you came here by accident.

You'll probably get better help if you post in a mySQL group, for
instance in comp.databases.mysql.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Dec 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Pascal Deparis | last post: by
8 posts views Thread by situ | last post: by
reply views Thread by runway27 | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.