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 > MFC application, updating indicator on the main GUI

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-08, 05:54
Mrgoos Mrgoos is offline
Registered User
 
Join Date: Jan 2008
Posts: 1
MFC application, updating indicator on the main GUI

Hi.
I have a MFC application which uses MYSQL.
On the main GUI i have several indicators that are updated constantly from the DB.
Lets say for example that one indicator indicates whether a certain DB table is empty or not.
The way im using nowadays is to SELECT COUNT on the table every second.
I think it's not the best way to do it, i just dont know any other.
I wonder if there is a way to retrieve/catch a DB event that for instance, can tell me when a table is not empty anymore and i will then indicate it in my GUI without selecting the table every second.

Thanks for your reply.
Reply With Quote
  #2 (permalink)  
Old 04-20-09, 00:46
TwoHon TwoHon is offline
Registered User
 
Join Date: Apr 2009
Posts: 1
At first, you can check up that from select count thing... but, if there is empty then u don't need to this every second , just check when u send a insert query
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On