# Comment table

可用來顯示資料庫或試算表的表格註解 (中繼資料)。

文件中未出現的表格名稱將予以忽略。如果一個表格名稱出現多次，會使用最後一個值。可使用關鍵字讀取資料來源的註解。

語法：

comment [tables] tablelist using mapname

comment [table] tablename with comment

引數：

Comment table 引數

| 引數 | 描述 |
| --- | --- |
| tablelist | (table{,table}) |
| mapname | 先前在 mapping LOAD 或 mapping SELECT 陳述式中讀取的對應表名稱。 |
| tablename | 應加上註解的表格名稱。 |
| 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-TW/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/comment.htm)
* [Table/Tables](https://help.qlik.com/zh-TW/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Table.htm)