简体   繁体   English

如何检查Mysql表有没有变化?

[英]How to check Mysql table has changed or not?

I have an app that is connected to the server database.我有一个连接到服务器数据库的应用程序。 I want to check if a table has changed, then send a request to the database to get new values in the app.我想检查表是否已更改,然后向数据库发送请求以获取应用程序中的新值。 How can I do it?我该怎么做?

You need to make a service for it that constantly checks for the database then make your service pass the new data through sockets.您需要为其创建一个服务,不断检查数据库,然后让您的服务通过套接字传递新数据。 for a standard solution, some modification on other 3rd party app will be needed like creating a socket that sends the new data to your mobile app after inserting it to the database like how firebase does.对于标准解决方案,需要对其他 3rd 方应用程序进行一些修改,例如创建一个套接字,在将新数据插入数据库后将新数据发送到您的移动应用程序,就像 firebase 所做的那样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM