怎样在mysql创建事件_如何创建“事件”在MySQL中

bd96500e110b49cbb3cd949968f18be7.png

Hi,

I''m a novice C# developer/MySQL admin and I''m trying to figure out how do I have a MySQL table send table updates or inserts to a C# client app whenever the table is updated or a new record is inserted.

As of now I''ve been using a really crude way of accomplishing this; what I''ve been doing is using a timer in the C# client app to query the MySQL table every second and check for an update and if an update occurred then I pull this data from the table into the C# client for visual display.

Can someone please point me in the right direct as to the correct way of doing this.

Thanks,

-Donald

解决方案Take a look at the MSDN Docs for the BindingSource[^] Component. Particularly the Remarks section.

Does this sound like what you want?

If so, then (theoretically, at least. I''ve never used it with MySql.) all you have to do is set the DataSource property of the BindingSource to whatever is your current data source, then set the DataSource for your controls to the BindingSource.

Thanks for the response Henry Minute but that''s not what I''m looking for. I don''t want to bind the control to the table. I need to analyze the database table data each time the table is updated and if it meets a certain criteria then I''ll display it in via the control.

I want the database table to send the updated record(s) to an object that analyzes the record(s) and determines if it should displayed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值