in reply to How to check for new records in mysql database every minute
Another option is to maintain an auditing table. Ideally, you would use triggers to maintain this, but this can also be maintained within the application as well. Basically, every time you modify the table in question, you insert a record into the audit log. Then, you can check to see if the audit log has grown in the intervening period.
My question is why you want to know this - what problem are you trying to solve? There is probably an easier way to solve it than what you're trying to do ...
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|