# Comment table

提供一种从数据库或电子表格显示表格注释（元数据）的方式。

可以忽略在应用程序中不显示的表格名。如果有表格名多次出现，将使用最后出现的值。关键字可用于从数据源中读取注释。

语法：

comment [tables] tablelist using mapname

comment [table] tablename with comment

参数：

参数

| 参数 | 说明 |
| --- | --- |
| tablelist | (table{,table}) |
| mapname | 先前在映射 LOAD 或映射 SELECT 语句中读取的映射表的名称。 |
| tablename | 要添加注释的表格的名称。 |
| comment | comment 是应添加到表格的注释。 |

示例 1:

`Commentmap:` `mapping LOAD  * inline [` `a,b` `Main,This is the fact table` `Currencies, Currency helper table` `];` `comment tables using Commentmap;`

示例 2:

`comment table Main with 'Main fact table';`

## 了解详情

* [Comment field](https://help.qlik.com/zh-CN/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/comment.htm)
* [Table/Tables](https://help.qlik.com/zh-CN/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Table.htm)