dbTalk Databases Forums  

SQL command to show only databases that contain a particular table

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss SQL command to show only databases that contain a particular table in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
judy
 
Posts: n/a

Default SQL command to show only databases that contain a particular table - 12-05-2007 , 10:31 AM






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?

Reply With Quote
  #2  
Old   
Hugo Kornelis
 
Posts: n/a

Default Re: SQL command to show only databases that contain a particular table - 12-05-2007 , 12:30 PM






On Wed, 05 Dec 2007 16:31:37 GMT, judy wrote:

Quote:
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


Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.