﻿.. _sys_table_encrypt(KES):

sysencrypt.sys_table_encrypt
###############################

视图 ``sys_table_encrypt`` 显示数据库内的用户表加密状态。 加载数据加解密插件 :ref:`sysencrypt` 后，查询使用 ``sysencrypt.sys_table_encrypt`` 。

.. table:: sys_table_encrypt列
       :class: longtable
       :widths: 1 1 2

       +-----------------+-------------+---------------------------+
       | 名称            | 类型        | 描述                      |
       +=================+=============+===========================+
       | ``oid``         | ``oid``     | 加密表oid                 |
       +-----------------+-------------+---------------------------+
       | ``tablename``   | ``name``    | 表名                      |
       +-----------------+-------------+---------------------------+
       | ``tablespace``  | ``oid``     | 表空间oid                 |
       +-----------------+-------------+---------------------------+
       | ``schema``      | ``name``    | 表所在的模式名            |
       +-----------------+-------------+---------------------------+
       | ``isencrypted`` | ``boolean`` | 加密表为 t， 非加密表为 f |
       +-----------------+-------------+---------------------------+
