问题
I am currently working on snowflake where I need to find when a table was last accessed in snowflake either by a query or manually. Can someone help me out here? Thank you
回答1:
If you mean with a select, I don't think there's a way to do it by table, you'd have to monitor the last executed queries to find that information: https://docs.snowflake.net/manuals/sql-reference/functions/query_history.html
Update-wise: SYSTEM$LAST_CHANGE_COMMIT_TIME should give you the info you need.
来源:https://stackoverflow.com/questions/60751428/is-there-a-way-to-know-when-a-table-was-last-accessed-in-snowflake