---
schema_version: "1"
id: ac87649c0b8f3546d37b5efdfa42869cf1ec38e88f8cabb93af49ab013c146a6
title: 字串函數
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/public/desktop/functions_functions_string.md
canonical_url: https://help.tableau.com/v0.0/public/desktop/zh-tw/functions_functions_string.htm
source_site: help.tableau.com
content_type: documentation
content_hash: baecf9181e4d171256bd5bade7fadfe186e60a96236aac6c825918208881744c
description: Reference for Tableau string functions used to manipulate text data.
---
[跳至主要內容](#main-content)

# 字串函數

本文介紹字串函數及其在 Tableau 中的用法。它還示範了如何使用範例建立字串計算。

## 為何使用字串函數

字串函數允許您操作字串資料（即由文字組成的資料）。Tableau 使用當前的國際 Unicode 組件 (ICU) 程式庫比較字串。字串的排序和比較方式基於語言和地區設定，且隨著 ICU 不斷更新以獲得更好的語言支持，可視化可能會發生變化。

例如，可能有一個包含所有客戶的名字和姓氏的欄位。一個成員可能為：Jane Johnson。您可以使用字串函數將姓氏從所有客戶拉取到一個新欄位中。

計算可能如下所示：

`SPLIT([Customer Name], ' ', 2)`

因此，`SPLIT('Jane Johnson' , ' ', 2) =` \[Johnson\] 。

## 熟悉其他文字概念

以下幾個主題可能會引起您的興趣，但不是字串函數中的內容：

- [在工作簿層級設定格式](https://help.tableau.com//current/pro/desktop/zh-tw/formatting_workbook.htm)
- [使用自訂字型](https://help.tableau.com//current/pro/desktop/zh-tw/formatting_create_custom_fonts.htm)
- [設定欄位和欄位標籤的格式](https://help.tableau.com//current/pro/desktop/zh-tw/formatting_specific_fields.htm)

> [!TIP]
> 
> **提示**：請參閱[設定文字格式](https://help.tableau.com/v0.0/public/desktop/zh-tw/formatting_fonts_beta.htm)和使用文字欄位的相關主題。本頁上的字串函數可讓您操作欄位中的內容，而不是設定其顯示格式。

## Tableau 提供的字串函數

### ASCII

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>ASCII(string)</code></td></tr><tr><td>輸出</td><td>數字</td></tr><tr><td>定義</td><td>傳回 <code>&lt;string&gt;</code> 的第一個字元的 ASCII 碼。</td></tr><tr><td>範例</td><td><pre>ASCII('A') = 65</pre></td></tr><tr><td>說明</td><td>這是 <code>CHAR</code> 函數的反函數。</td></tr></tbody></table>

### 字元

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>CHAR(number)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>返回透過 ASCII 代碼 <code>&lt;number&gt;</code> 編碼的字元。</td></tr><tr><td>範例</td><td><pre>CHAR(65) = 'A'</pre></td></tr><tr><td>說明</td><td>這是 <code>ASCII</code> 函數的反函數。</td></tr></tbody></table>

### CONTAINS

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>CONTAINS(string, substring)</code></td></tr><tr><td>輸出</td><td>布林值</td></tr><tr><td>定義</td><td>如果給定字串包含指定子字串，則返回 true。</td></tr><tr><td>範例</td><td><pre>CONTAINS("Calculation", "alcu") = true</pre></td></tr><tr><td>說明</td><td><p>另請參閱 <a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_logical.htm" target="_blank">邏輯函數</a> <code>IN</code> 以及<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</p><p>CONTAINS 可能區分大小寫，具體取決於資料來源。也就是說，對於某些資料來源，<code>CONTAINS("Calculation", "ALCU") = false</code> ，但 <code>CONTAINS("Calculation", "alcu") = true</code>。另請參閱 <a href="#UPPER" class="xref">UPPER</a>、<a href="#LOWER" class="xref">LOWER</a> 和 <a href="#PROPER" class="xref">PROPER</a>。</p></td></tr></tbody></table>

### ENDSWITH

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>ENDSWITH(string, substring)</code></td></tr><tr><td>輸出</td><td>布林值</td></tr><tr><td>定義</td><td>如果給定字串以指定子字串結尾，則返回 true。會忽略尾隨空格。</td></tr><tr><td>範例</td><td><pre>ENDSWITH("Tableau", "leau") = true</pre></td></tr><tr><td>說明</td><td>另請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</td></tr></tbody></table>

### FIND

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>FIND(string, substring, [start])</code></td></tr><tr><td>輸出</td><td>數字</td></tr><tr><td>定義</td><td><p>傳回子字串在字串中的索引位置，如果未找到子字串則傳回 0。字串中第一個字元的位置為 1。</p><p>如果新增了可選引數 <code>start</code>，則函數會忽略在開始位置之前出現的任何子字串執行個體。</p></td></tr><tr><td>範例</td><td><pre>FIND("Calculation", "alcu") = 2</pre><pre>FIND("Calculation", "Computer") = 0</pre><pre xml:space="preserve">FIND("Calculation", "a", 3) = 7</pre><pre xml:space="preserve">FIND("Calculation", "a", 2) = 2</pre><pre xml:space="preserve">FIND("Calculation", "a", 8) = 0</pre></td></tr><tr><td>說明</td><td>另請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</td></tr></tbody></table>

### FINDNTH

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>FINDNTH(string, substring, occurrence)</code></td></tr><tr><td>輸出</td><td>數字</td></tr><tr><td>定義</td><td>返回指定字串內的第 n 個子字串的位置，其中 n 由 occurrence 參數定義。</td></tr><tr><td>範例</td><td><pre>FINDNTH("Calculation", "a", 2) = 7</pre></td></tr><tr><td>說明</td><td><p><code>FINDNTH</code> 對於所有資料來源都不可用。</p><p>另請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</p></td></tr></tbody></table>

### LEFT

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>	LEFT(string, number)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回字串最左側 <code>&lt;number&gt;</code> 的字元。</td></tr><tr><td>範例</td><td><pre>LEFT("Matador", 4) = "Mata"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#MID" class="xref">MID</a> 和 <a href="#RIGHT" class="xref">RIGHT</a>。</td></tr></tbody></table>

### LEN

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>LEN(string)</code></td></tr><tr><td>輸出</td><td>數字</td></tr><tr><td>定義</td><td>返回字串長度。</td></tr><tr><td>範例</td><td><pre>LEN("Matador") = 7</pre></td></tr><tr><td>說明</td><td>不要與<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_spatial.htm" target="_blank">空間函數</a> <code>LENGTH</code> 混淆。</td></tr></tbody></table>

### LOWER

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>LOWER(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回提供的 <code>&lt;string&gt;</code>，且全為小寫字元。</td></tr><tr><td>範例</td><td><pre>LOWER("ProductVersion") = "productversion"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#UPPER" class="xref">UPPER</a> 和 <a href="#PROPER" class="xref">PROPER</a>。</td></tr></tbody></table>

### LTRIM

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>	LTRIM(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回移除所有前導空格的 <code>&lt;string&gt;</code>。</td></tr><tr><td>範例</td><td><pre>LTRIM(" Matador ") = "Matador "</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#RTRIM" class="xref">RTRIM</a>。</td></tr></tbody></table>

### MAX

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>MAX(expression)</code> 或 <code>MAX(expr1, expr2)</code></td></tr><tr><td>輸出</td><td>與引數相同的資料類型，若引數的任何部分為 NULL，則為 <code>NULL&nbsp;</code>。</td></tr><tr><td>定義</td><td><p>傳回兩個引數（必須為相同資料類型）中的較大值。</p><p><code>MAX</code> 也可以作為彙總套用於單一欄位。</p></td></tr><tr><td>範例</td><td><pre xml:space="preserve">MAX(4,7) = 7<br>MAX(#3/25/1986#, #2/20/2021#) = #2/20/2021# <br>MAX([Name]) = "Zander"</pre></td></tr><tr><td>說明</td><td><p><b>對於字串</b></p><p><code>MAX</code> 通常是按字母順序排在最後的值。</p><p class="note">對於資料庫資料來源，<code>MAX</code> 字串值是資料庫為欄定義的排序順序中的最高值。</p><p><b>對於日期</b></p><p>對於日期，<code>MAX</code> 是最近的日期。如果 <code>MAX</code> 是彙總，結果不會有日期階層。如果 <code>MAX</code> 是比較，結果將保留日期階層。</p><p><b>作為彙總</b></p><p><code>MAX(expression)</code> 為彙總函數，會傳回單一彙總結果。這在視覺效果中顯示為 <code>AGG(expression)</code>。</p><p><b>作為比較</b></p><p><code>MAX(expr1, expr2)</code> 會比較兩個值，並傳回一個列層級值。</p><p>另請參閱 <code><a href="#MIN" class="xref">MIN</a></code>。</p></td></tr></tbody></table>

### MID

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>(MID(string, start, [length])</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td><p>傳回從指定的 <code>start</code> 位置開始的字串。字串中第一個字元的位置為 1。</p><p>如果新增了可選數字參數 <code>length</code>，則傳回的字串僅包含該數字的字元。</p></td></tr><tr><td>範例</td><td><pre>MID("Calculation", 2) = "alculation"</pre><pre>MID("Calculation", 2, 5) ="alcul"</pre></td></tr><tr><td>說明</td><td>另請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</td></tr></tbody></table>

### MIN

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>MIN(expression)</code> 或 <code>MIN(expr1, expr2)</code></td></tr><tr><td>輸出</td><td>與引數相同的資料類型，若引數的任何部分為 NULL，則為 <code>NULL&nbsp;</code>。</td></tr><tr><td>定義</td><td><p>傳回兩個引數（必須為相同資料類型）的最小值。</p><p><code>MIN </code> 也可以作為彙總套用於單一欄位。</p></td></tr><tr><td>範例</td><td><pre xml:space="preserve">MIN(4,7) = 4<br>MIN(#3/25/1986#, #2/20/2021#) = #3/25/1986#<br>MIN([Name]) = "Abebi"</pre></td></tr><tr><td>說明</td><td><p><b>對於字串</b></p><p><code>MIN</code> 通常是按字母順序排列在最前面的值。</p><p class="note">對於資料庫資料來源，<code>MIN</code> 字串值是資料庫為欄定義的排序順序中的最低值。</p><p><b>對於日期</b></p><p>對於日期，<code>MIN</code> 是最早的日期。如果 <code>MIN</code> 是彙總，結果不會有日期階層。如果 <code>MIN</code> 是比較，結果將保留日期階層。</p><p><b>作為彙總</b></p><p><code>MIN(expression)</code> 為彙總函數，會傳回單一彙總結果。這在視覺效果中顯示為 <code>AGG(expression)</code>。</p><p><b>作為比較</b></p><p><code>MIN(expr1, expr2)</code> 會比較兩個值，並傳回一個列層級值。</p><p>另請參閱 <code><a href="#MAX" class="xref">MAX</a></code>。</p></td></tr></tbody></table>

### PROPER

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>PROPER(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td><p>傳回提供的 <code>&lt;string&gt;</code>，其中每個單字的第一個字母大寫，其餘字母小寫。</p></td></tr><tr><td>範例</td><td><pre>PROPER("PRODUCT name") = "Product Name"</pre><pre>PROPER("darcy-mae") = "Darcy-Mae"</pre></td></tr><tr><td>說明</td><td><p>空格和非英數字元（如標點符號）也用作分隔符號。</p><p>另請參閱 <a href="#LOWER" class="xref">LOWER</a> 和 <a href="#UPPER" class="xref">UPPER</a>。</p></td></tr> <tr><td>資料庫限制</td><td>PROPER 僅適用於某些一般檔案和擷取。若您需要在不提供支援的資料來源中使用 PROPER，請考慮使用擷取。</td></tr></tbody></table>

### REPLACE

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>REPLACE(string, substring, replacement</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>在 <code>&lt;string&gt;</code> 中搜尋 <code>&lt;substring&gt;</code> 並將其替換為 <code>&lt;replacement&gt;</code>。如果未找到 <code>&lt;substring&gt;</code>，則字串保持不變。</td></tr><tr><td>範例</td><td><pre xml:space="preserve">REPLACE("Version 3.8", "3.8", "4x") = "Version 4x"</pre></td></tr><tr><td>說明</td><td>另請參閱在<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中的 <code>REGEXP_REPLACE</code>。</td></tr></tbody></table>

### RIGHT

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>RIGHT(string, number)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回字串最右側 <code>&lt;number&gt;</code> 的字元。</td></tr><tr><td>範例</td><td><pre>RIGHT("Calculation", 4) = "tion"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#LEFT" class="xref">LEFT</a> 和 <a href="#MID" class="xref">MID</a>。</td></tr></tbody></table>

### RTRIM

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>RTRIM(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回移除所有尾端空格的 <code>&lt;string&gt;</code>。</td></tr><tr><td>範例</td><td><pre>RTRIM(" Calculation ") = " Calculation"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#LTRIM" class="xref">LTRIM</a> 和 <a href="#TRIM" class="xref">TRIM</a>。</td></tr></tbody></table>

### SPACE

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>SPACE(number)</code></td></tr><tr><td>輸出</td><td>字串（具體來說，只是空格）</td></tr><tr><td>定義</td><td>傳回由指定數量的重複空格組成的字串。</td></tr><tr><td>範例</td><td><pre>SPACE(2) = "  "</pre></td></tr></tbody></table>

### SPLIT

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>SPLIT(string, delimiter, token number)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>返回字串中的一個子字串，並使用分隔符號字元將字串分為一系列權杖。</td></tr><tr><td>範例</td><td><pre>SPLIT ("a-b-c-d", "-", 2) = "b"</pre><pre>SPLIT ("a|b|c|d", "|", -2) = "c"</pre></td></tr><tr><td>說明</td><td><p>字串將被解釋為分隔符號和權杖的交替序列。因此，對於字串 <code>abc-defgh-i-jkl</code>，其中分隔符號字元為「<code>-</code>」，權杖為 (1) <code>abc</code>、(2) <code>defgh</code>、(3) <code>i</code> 和 (4) <code>jlk</code></p><p><code>SPLIT</code> 傳回與權杖編號對應的權杖。如果權杖編號為正，則從字串的左側開始計算權杖；如果權杖編號為負，則從右側開始計算權杖。</p><p>另請參閱<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外函數文件</a>中支援的正規表式。</p></td></tr><tr><td>資料庫限制</td><td><p>可以為以下資料來源類型使用拆分和自訂拆分命令：Tableau 資料擷取、Microsoft Excel、文字檔、PDF 檔、Salesforce、OData、Microsoft Azure Market Place、Google Analytics (分析)、Vertica、Oracle、MySQL、PostgreSQL、Teradata、Amazon Redshift、Aster Data、Google Big Query、Cloudera Hadoop Hive、Hortonworks Hive 和 Microsoft SQL Server。</p><p>某些資料來源在拆分字串時會有限制。請參閱本主題後面的 SPLIT 函數限制。</p></td></tr></tbody></table>

### STARTSWITH

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>STARTSWITH(string, substring)</code></td></tr><tr><td>輸出</td><td>布林值</td></tr><tr><td>定義</td><td>如果 <code>string</code> 以 <code>substring</code> 開頭，則返回 true。會忽略前導空格。</td></tr><tr><td>範例</td><td><pre xml:space="preserve">STARTSWITH("Matador, "Ma") = TRUE</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#CONTAINS" class="xref">CONTAINS</a>，以及<a href="https://help.tableau.com/current/pro/desktop/zh-tw/functions_functions_additional.htm" target="_blank">額外功能文件</a>中支援的正規表式。</td></tr></tbody></table>

### TRIM

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>TRIM(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回提供的 <code>&lt;string&gt;</code>，且移除前導和尾端空格。</td></tr><tr><td>範例</td><td><pre>TRIM(" Calculation ") = "Calculation"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#LTRIM" class="xref">LTRIM</a> 和 <a href="#RTRIM" class="xref">RTRIM</a>。</td></tr></tbody></table>

### UPPER

<table class="table--plain" style="width: 100%;"><colgroup><col style="width: 20%;"><col></colgroup><tbody><tr><td>語法</td><td><code>UPPER(string)</code></td></tr><tr><td>輸出</td><td>字串</td></tr><tr><td>定義</td><td>傳回提供的 <code>&lt;string&gt;</code>，且全為大寫字元。</td></tr><tr><td>範例</td><td><pre>UPPER("Calculation") = "CALCULATION"</pre></td></tr><tr><td>說明</td><td>另請參閱 <a href="#PROPER" class="xref">PROPER</a> 和 <a href="#LOWER" class="xref">LOWER</a>。</td></tr></tbody></table>  

## 建立字串計算

按照下面的步驟進行操作以瞭解如何建立字串計算。

1. 在 Tableau Desktop 中，連線到 Tableau 附帶的**\[範例 - 超級市場\]**已儲存資料來源。
2. 巡覽到工作表。
3. 從 \[**資料**\] 窗格中的 \[維度\] 下，將 \[Order ID\] （訂單 ID）拖到 \[列\] 架。
    
    ![試算表，其中一欄中包含訂單 ID 清單。](/tableau/next/zh-tw/public/desktop/zh-tw/Img/stringfunctions1.png)
    
    請注意，每個訂單 ID 都包含國家/地區值（例如，CA 和 US）、年份值 (2011)，以及訂單編號值 (100006)。對於此範例，您將建立一個計算以僅從欄位中拉取訂單編號。
4. 選取 \[分析\] \> \[建立計算欄位\]。
5. 在開啟的計算編輯器中，執行以下操作：

- 將計算欄位命名為 \[**Order ID Numbers**\] （訂單 ID 編號）。
- 輸入以下公式：
    
    `RIGHT([Order ID], 6)`
    
    此公式從字串的右側獲取指定位數 (6) 的數字，並將其拉取到新欄位中。
    
    因此，`RIGHT('CA-2011-100006' , 6)` = \[100006\] 。
- 完成後，按一下 **\[確定\]**。
    
    新的計算欄位將出現在 \[**資料**\] 窗格中的 \[**維度**\] 下。就像其他欄位一樣，您可以在一個或多個視覺效果中使用該欄位。

7. 從 \[**資料**\] 窗格中，將 \[Order ID Numbers\] （訂單 ID 編號）拖到 \[列\] 架。將其放在 \[Order Id\] （訂單 Id）的右側。
    
    留意這些欄位現在的不同之處。
    
    ![試算表，其中一欄中包含訂單 ID 清單。](/tableau/next/zh-tw/public/desktop/zh-tw/Img/stringfunctions2.png)

## 按資料來源劃分的 SPLIT 限制

某些資料來源在拆分字串時會有限制。下表顯示了哪些資料來源支援負權杖數（從右拆分），以及每個資料來源允許的拆分數是否有限制。

指定負權杖編數且對其他資料來源為合法的 `SPLIT` 函數將為這些資料啦安返回以下錯誤：_「Splitting from right is not supported by the data source.」_

<table class="table--plain"><colgroup></colgroup><tbody><tr><td><b>資料來源</b></td><td><b>左/右約束</b></td><td><b>最大拆分數</b></td><td><b>版本限制</b></td></tr><tr><td style="font-weight: bold;">Tableau 資料擷取</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Microsoft Excel</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">文字檔</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Salesforce</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">OData</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Google Analytics (分析)</td><td>兩側</td><td>無限</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Tableau Data Server</td><td>兩側</td><td>無限</td><td>版本 9.0 支援。</td></tr><tr><td style="font-weight: bold;">Vertica</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Oracle</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">MySQL</td><td>兩側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">PostgreSQL</td><td>在版本 9.0 之前僅左側；版本 9.0 及更高版本中為兩側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Teradata</td><td>僅左側</td><td>10</td><td>版本 14 及更高版本</td></tr><tr><td style="font-weight: bold;">Amazon Redshift</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Aster Database</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Google BigQuery</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Hortonworks Hadoop Hive</td><td>僅左側</td><td>10</td><td>&nbsp;</td></tr><tr><td style="font-weight: bold;">Cloudera Hadoop</td><td>僅左側</td><td>10</td><td>從版本 2.3.0 開始支援 Impala。</td></tr><tr><td style="font-weight: bold;">Microsoft SQL Server</td><td>兩側</td><td>10</td><td>2008 及更高版本</td></tr></tbody></table>

## 另請參閱

[Tableau 中的函數](https://help.tableau.com/v0.0/public/desktop/zh-tw/functions.htm)

[Tableau 函數（按字母順序）](https://help.tableau.com/v0.0/public/desktop/zh-tw/functions_all_alphabetical.htm)

[Tableau 函數（按類別）](https://help.tableau.com/v0.0/public/desktop/zh-tw/functions_all_categories.htm)

[在 Tableau 中編寫計算](https://help.tableau.com/v0.0/public/desktop/zh-tw/functions_operators.htm)