Back to home page

OSCL-LXR

 
 

    


0001 ---
0002 layout: global
0003 title: UNCACHE TABLE
0004 displayTitle: UNCACHE TABLE
0005 license: |
0006   Licensed to the Apache Software Foundation (ASF) under one or more
0007   contributor license agreements.  See the NOTICE file distributed with
0008   this work for additional information regarding copyright ownership.
0009   The ASF licenses this file to You under the Apache License, Version 2.0
0010   (the "License"); you may not use this file except in compliance with
0011   the License.  You may obtain a copy of the License at
0012 
0013      http://www.apache.org/licenses/LICENSE-2.0
0014 
0015   Unless required by applicable law or agreed to in writing, software
0016   distributed under the License is distributed on an "AS IS" BASIS,
0017   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0018   See the License for the specific language governing permissions and
0019   limitations under the License.
0020 ---
0021 
0022 ### Description
0023 
0024 `UNCACHE TABLE` removes the entries and associated data from the in-memory and/or on-disk cache for a given table or view. The
0025 underlying entries should already have been brought to cache by previous `CACHE TABLE` operation. `UNCACHE TABLE` on a non-existent table throws an exception if `IF EXISTS` is not specified.
0026 
0027 ### Syntax
0028 
0029 ```sql
0030 UNCACHE TABLE [ IF EXISTS ] table_identifier
0031 ```
0032 
0033 ### Parameters
0034 
0035 * **table_identifier**
0036 
0037     Specifies the table or view name to be uncached. The table or view name may be optionally qualified with a database name.
0038 
0039     **Syntax:** `[ database_name. ] table_name`
0040 
0041 ### Examples
0042 
0043 ```sql
0044 UNCACHE TABLE t1;
0045 ```
0046 
0047 ### Related Statements
0048 
0049 * [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
0050 * [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)
0051 * [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
0052 * [REFRESH](sql-ref-syntax-aux-cache-refresh.html)