Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想查看用户在某个日期范围内执行的查询。这可能吗?如果是这样,怎么做?
例如,几天前执行了一个查询,我想检索它。手动查询不经常运行,所以我的结果不会很大。
DB2 for Linux/UNIX/Windows 不跟踪查询的历史记录。
如果您需要查看数据库中执行的语句的历史记录,您有 2 个选项:
execute
这两个选项都可以考虑性能,因此请明智地使用它们。