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