Monitor MySQL table for changes within a C# program?

前端 未结 2 998
春和景丽
春和景丽 2020-12-17 23:24

Is it possible to monitor a mysql table for changes within a c# application? I basically want an event to be raised when data is inserted into the table. The only thing I

2条回答
  •  没有蜡笔的小新
    2020-12-17 23:48

    Perhaps add Insert, Update, Delete triggers to the table to log row in a new table with two columns..

    1. uid of row changed
    2. type of change insert/update/delete

    Then you access this table and it tells you the specifically which rows were inserted, updated, deleted.

提交回复
热议问题