Treat results of SHOW STATUS as table

This is a discussion on Treat results of SHOW STATUS as table within the MySQL Database forums, part of the Database Forums category; Commands like this won't work, apparently: INSERT INTO connections SHOW STATUS LIKE 'Threads_connected'; Is there a way to put ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-11-2007
Christoph Burschka
 
Posts: n/a
Default Treat results of SHOW STATUS as table

Commands like this won't work, apparently:

INSERT INTO connections SHOW STATUS LIKE 'Threads_connected';

Is there a way to put the result of a status query into a table within
MySQL, or am I going to have to select and insert it in two separate
queries using PHP or a shell script?

--
cb
Reply With Quote
  #2 (permalink)  
Old 06-11-2007
lark
 
Posts: n/a
Default Re: Treat results of SHOW STATUS as table

== Quote from Christoph Burschka (christoph.burschka@rwth-aachen.de)'s article
> Commands like this won't work, apparently:
> INSERT INTO connections SHOW STATUS LIKE 'Threads_connected';
> Is there a way to put the result of a status query into a table within
> MySQL, or am I going to have to select and insert it in two separate
> queries using PHP or a shell script?


it appears you're gonna have to use two queries and php. didn't work for me
either. strange!
--
POST BY: lark with PHP News Reader
Reply With Quote
Reply
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0