Hi,
I wonder if it's possible to check whether a MySQL DB has updated. e.g. new information is added to a table?
and if it detect an update. it will perform search or something else.
Main question is if it is possible to listen for changes in the db.
ganmo 36 Light Poster
Recommended Answers
Jump to PostYou would need to occassionally "poll" the DB (and hopefully you have a timestamp field to make it "easy").
Jump to PostA trigger will not be able to notify the DB. The "easiest" way is to set an autoupdating timestamp field on the concerned table, then, every so often, retrieve all records with a timestamp newer than the last time you checked.
To repeat, the DB cannot (at least in …
All 8 Replies
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
ganmo 36 Light Poster
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
ganmo 36 Light Poster
stephen84s 550 Nearly a Posting Virtuoso Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.