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 6213721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:44:56+00:00 2026-05-24T06:44:56+00:00

Actually I use the following sentence read on another question in this page: SELECT

  • 0

Actually I use the following sentence read on another question in this page:

SELECT UPDATE_TIME
FROM   information_schema.tables
WHERE  TABLE_SCHEMA = 'dbname'
   AND TABLE_NAME = 'tabname'

But I think that it is using a lot of process time, it will be more easy if mysql-server sends me a signal when the table is updated so I can wait until my program detects that signal.

Is this possible? I’m programming in C.

Thank you very much.

  • 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-05-24T06:44:57+00:00Added an answer on May 24, 2026 at 6:44 am

    You can use a trigger combined with a UDF progammed in C(++) to do the notification.
    Here’s dummy code.

    DELIMITER $$
    
    CREATE TRIGGER ai_table1_each AFTER INSERT ON table1 FOR EACH ROW
    BEGIN
      CALL ChangeNotification('table1', 'insert', NEW.id);
    END $$
    
    DELIMITER ;
    

    You’ll have to do a trigger for insert/delete and update. 3x per table.
    You cannot add a trigger to the system tables IIRC, because these are really views and not actual tables.

    You’ll need to write a UDF in C(++) called changenotification that does the notification for you.

    Links:
    http://dev.mysql.com/doc/refman/5.0/en/adding-udf.html
    http://www.mysqludf.org/
    http://dev.mysql.com/doc/refman/5.0/en/triggers.html
    http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html

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

Sidebar

Related Questions

I'm trying to add simple login page to ASP.NET MVC app. I actually use
actually i use this method to show similar words for a search request.. $query
I actually use a combination of OS X, Linux and Windows, but Windows is
Is it possible to actually use the type passed as a template for control
Can someone give an example of a good time to actually use unsafe and
I'm trying to grasp the concept of .NET Generics and actually use them in
I'm quite new to Flex and wondered if other developers actually use its stylesheet
If we want to get a single GPS fix in Android we actually use
Is it possible to actually make use of placement new in portable code when
I could actually see a use for the Google Annotations Gallery in real code:

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.