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 > PHPAdmin & Multiple Select Statements

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-12, 08:41
pinkfloyd43 pinkfloyd43 is offline
Registered User
 
Join Date: Dec 2010
Posts: 39
PHPAdmin & Multiple Select Statements

I am tasked weekly to run some SQL again many databases and PHPAdmin is all I have to do it with.

I want to connect to DB1 run a script that counts rows from a few tables then connect DB2 and do the same. All the way up to DB56. I have been doing this manually for a few weeks now and it's not fun!

I can't figure out how to get the PHPAdmin toolset to accept multiple SQLstatements and display ALL the results at once. It's like PHPAdmin will only execute one statement and return one result?

Sorry if this is a basic question as am still learning about PHPAdmin and MySQL and appreciate any help. Thanks!

From The Dark Side Of the Moon
Reply With Quote
  #2 (permalink)  
Old 01-20-12, 09:41
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by pinkfloyd43 View Post
It's like PHPAdmin will only execute one statement and return one result?
that is correct

seems to me that your biggest source of pain is the person who decided to put the same data into 56 different databases
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 01-20-12, 10:12
pinkfloyd43 pinkfloyd43 is offline
Registered User
 
Join Date: Dec 2010
Posts: 39
It's 56 distinct customers, sorry should of indicated that.
Reply With Quote
  #4 (permalink)  
Old 01-20-12, 10:27
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
yeah, too bad... a single database would've made your job much easier, no?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Tags
phpadmin

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