

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 搭配 DynamoDB 專用 PartiQL 使用 BEGINS\_WITH 函數
<a name="ql-functions.beginswith"></a>

如果指定的屬性以特定子字串開頭，則傳回 `TRUE`。

## 語法
<a name="ql-functions.beginswith.syntax"></a>

```
begins_with({{path}}, {{value}} )
```

## 引數
<a name="ql-functions.beginswith.arguments"></a>

{{路徑}}  
(必要) 要使用的屬性名稱或文件路徑。

{{值}}  
(必要) 要搜尋的字串。

## 傳回類型
<a name="ql-functions.beginswith.return-type"></a>

`bool`

## 範例
<a name="ql-functions.beginswith.examples"></a>

```
SELECT * FROM "Orders" WHERE "OrderID"=1 AND begins_with("Address", '7834 24th')
```