Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8981733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:24:36+00:00 2026-06-15T20:24:36+00:00

I am quite new to web developing and am a little lost as to

  • 0

I am quite new to web developing and am a little lost as to where to start with the following
problem.

Basically i want a mysql event scheduler to run every 30 mins whereby it copies a hundred elements in one column of a table in my database to another column in the same table (so updating the later table to these new values) and then finding the least value among the hundred copied entries (integers) in the updated column. And then so i can set the value as a local variable in a php script.

How on earth would i go about this? I assume it is possible. I would greatly appreciate it if somebody could provide a general or abstract method. Cheers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:24:37+00:00Added an answer on June 15, 2026 at 8:24 pm

    To create an event, you would just do something like this:

    CREATE EVENT database.eventname
    ON SCHEDULE EVERY 30 MINUTE
    DO
    BEGIN
    # Your SQL here
    END
    

    You’ll need to make sure the event scheduler is running as well. If it is running, you should see it’s thread if you run the SHOW PROCESSLIST command. If not, you can turn it on like so:

    SET GLOBAL event_scheduler = ON;
    

    You’ll also want to set the event_scheduler=ON setting in your my.cnf file to make sure it runs at startup (I believe it is OFF on most systems by default)

    See here for more details on the MySQL event scheduler

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I'm quite new to web developing and this is a bit difficult to
Hello guys I'm quite new at Web Development and I'm stuck on a problem
I'm about to start developing a new web application in CodeIgniter. In the past,
I am quite new to client-side web development, so just feel free to edit
I'm quite new to the process of web development, so I apoligise if this
I'm building a web application using Yii framework, and i'm quite new to it.
Still quite new to Haskell.. I want to read the contents of a file,
I'm developing a web application using ASP.NET MVC (I'm new to the framework and
I am developing a web application. The application is becoming quite complex, to the
I'm developing a web application with Zend Framework 1.12, which is something new to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.