How to update database automatically

Posted on 2003-02-19
Medium Priority
Last Modified: 2008-03-06
I want to refresh a database (delete some record) every 10 minutes. Can I implement it with trigger? If so, how to do it?

Question by:JamesCao
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 7985687
Sorry, I just want to refresh a table instead of a database.

Accepted Solution

nussi earned 100 total points
ID: 7987121
If you're using a DBRS which allows you to schedule tasks, you should be able to do that
With SQL Server for example you can execute Transact-SQL in a task that would be executed every ten minutes

Assisted Solution

BuffyTVS65 earned 100 total points
ID: 7987167
Triggers implement something based on a triggering event e.g. an insert/delete.  You probably want to write something as a function / procedure and implement it using the DBMS_JOB package which enables you to schedule it to run every 10 minutes.

Expert Comment

ID: 7987174
Of course my previous answer depends on the RDBMS - I was writing it as an oracle guy, so sorry if not applicable.

Expert Comment

by:Tom Knowlton
ID: 9432424
No comment has been added lately (217 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: split points between nussi http:#7987121 and BuffyTVS65 http:#7987167

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --


EE Cleanup Volunteer

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In this article, we’ll look at how to deploy ProxySQL.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question