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

  • SEARCH
  • Home
  • 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 8679329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:56:41+00:00 2026-06-12T20:56:41+00:00

i just wrote a mysql stored procedure that would take data based on certain

  • 0

i just wrote a mysql stored procedure that would take data based on certain conditions from two tables and then inserts them on a third table. I m planning to schedule this procedure to run in one of the two situations:
a) when a new entry is made in EITHER of the first two tables and update the third table, OR
b) just schedule the proc to run every say 5 mins and update the third table.

I m not aware of how to do the option a).
I was thinking about using cron to schedule in my linux based web host, but then at the very last moment realised that they dont allow cron jobs for the basic version that i am using.

this brought me to services like onlinecronjobs.com and similar others, but i did not understand how they will help me run this stored proc.

my question is, if i give such sites the link to the stored proc – example:
http://www.mysite.com/cron/mySP.sql
then can these sites automatically call this stored proc and have the stored proc insert data into the third table? Is my assumption correct – just need to give them the path to the stored proc, is it?

thanks!

  • 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-12T20:56:42+00:00Added an answer on June 12, 2026 at 8:56 pm

    a) Use a trigger:

    CREATE TRIGGER foo AFTER INSERT ON tableA FOR EACH ROW CALL my_proc();
    CREATE TRIGGER bar AFTER INSERT ON tableB FOR EACH ROW CALL my_proc();
    

    b) Use MySQL’s event scheduler:

    CREATE EVENT baz ON SCHEDULE EVERY 5 MINUTE DO CALL my_proc();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well I have this MySQL stored procedure that I wrote and if I run
I just wrote a stored function to calculate the working days between two dates.
I am designing a few scripts to write Excel files from MySQL stored data.
I wrote a simple Stored Procedure with a while loop that's not working. Here's
I have a table say, ITEM, in MySQL that stores data as follows: ID
I'm creating a photo tagging project using mysql and php, that not only just
I have a stored procedure that opens a CURSOR on a select statement that
I am just a new beginner in MySQL and I wanted to write the
Just wrote a web service and try to return columns of a sharepoint list
I just wrote a very simple perl tk script to read a huge text

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.