Is there a way to know when a table was last accessed in snowflake

有些话、适合烂在心里 提交于 2020-04-16 05:50:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!