Watching a table for change in MySQL?

后端 未结 6 1201
不思量自难忘°
不思量自难忘° 2020-12-05 18:23

Is there a better way to watch for new entries in a table besides selecting from it every n ticks of time or something like that?

I have a table that an external pro

6条回答
  •  自闭症患者
    2020-12-05 19:12

    In MySQL there's no best way than to poll (you create a specific table to simplify the polling though), in other databases you can have triggers that have impact outside the database. In MySQL triggers can only do stuff inside the database itself (for instance, populating the helper table).

提交回复
热议问题