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 > trigger an update query if that record was not update within 10 minutes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-17-11, 16:28
guitarlass guitarlass is offline
Registered User
 
Join Date: Aug 2010
Posts: 8
trigger an update query if that record was not update within 10 minutes

hi,
how can i trigger an update query on a certain record if that record was not update within last say: 1 minute???/ can i doit without using any scripting?
Reply With Quote
  #2 (permalink)  
Old 09-19-11, 15:01
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
A trigger is something that gets executed when a record is either inserted, updated or deleted in a table. What you want to do is to schedule a process to execute periodically which looks at the records and identifies those that have not been updated within the period your are looking for. In MySQL have a look at EVENTS which allows you to schedule SQL code to scheduled within the database.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
Reply

Tags
mysql, time, trigger, update

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