# Join

join 前置詞能夠將載入的表格與現有的具名表格或先前最後建立的資料表聯結。

語法：

[inner | outer | left | right ]Join [ (tablename ) ]( loadstatement | selectstatement )

聯結是在所有常見欄位中進行的自然聯結。join 陳述式前面可以加上 inner、outer、left 或 right 前置詞的其中一個。

引數：

表格載入引數

| 引數 | 描述 |
| --- | --- |
| tablename | 要與載入的表格進行比較的具名表格。 |
| loadstatement 或 selectstatement | 用於載入表格的 LOAD 或 SELECT 陳述式。 |

範例：

`Join LOAD 
 * from abc.csv;` ` ` `Join SELECT  
 * from table1;` ` ` ` tab1:  ` `LOAD * from 
 file1.csv;` `tab2:` `LOAD * from 
 file2.csv;` ` .. .. ..  ` `join (tab1) 
 LOAD  * from file3.csv;`

## 瞭解更多資訊

* [Inner](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Inner.htm)
* [Outer](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Outer.htm)
* [Left](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Left.htm)
* [Right](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Right.htm)
* [Keep](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Keep.htm)
* [使用 Join 與 Keep 來合併表格](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/combine-tables-with-join-keep.htm)