gpt4 book ai didi

mysql - 有没有办法知道所有的表都改变了什么

转载 作者:搜寻专家 更新时间:2023-10-30 21:40:49 24 4
gpt4 key购买 nike

我正在调试一个使用 MySQL 的 Web 应用程序。我看到很多表在不同流程(注册、编辑等)之间被修改。而且,很难通过代码库来了解在不同调用之间修改了哪些表。

是否有更好的方法来了解在两次(两次调用)之间修改了哪些表。

最佳答案

general query log能够了解所有查询正在执行的内容。

我遇到了这个- How can I tell when a MySQL table was last updated?

In later versions of MySQL you can use the information_schema database to tell you when another table was updated:

SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'dbname' AND TABLE_NAME = 'tabname'

This does of course mean opening a connection to the database.

关于mysql - 有没有办法知道所有的表都改变了什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9906789/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com