UNCACHE TABLE
描述
UNCACHE TABLE
从给定表或视图的内存和/或磁盘缓存中删除条目和关联的数据。 底层条目应该已经被之前的 CACHE TABLE
操作加载到缓存中。 如果未指定 IF EXISTS
,则在不存在的表上 UNCACHE TABLE
会抛出异常。
语法
UNCACHE TABLE [ IF EXISTS ] table_identifier
参数
-
table_identifier
指定要取消缓存的表或视图名称。 表或视图名称可以选择性地使用数据库名称进行限定。
语法:
[ database_name. ] table_name
示例
UNCACHE TABLE t1;