# Left - 指令碼與圖表函數

Left() 會傳回包含輸入字串中第一個 (最左邊) 字元的字串，其中傳回的字串中的字元數由第二個引數決定。

語法：

Left(text, count)

傳回的資料類型： 字串

引數：

Left 引數

| 引數 | 描述 |
| --- | --- |
| text | 原始字串。 |
| count | 定義要在字串 text 左側部分中包括的字元數目。 |

範例與結果：

範例與結果

| 範例 | 結果 |
| --- | --- |
| `Left('abcdef', 3)` | 傳回 'abc' |

## 瞭解更多資訊

* [Index - 指令碼與圖表函數](https://help.qlik.com/zh-TW/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/Index.htm)
* [Right - 指令碼與圖表函數](https://help.qlik.com/zh-TW/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/Right.htm)