

# 将 BEGINS\$1WITH 函数与 PartiQL for DynamoDB 结合使用
<a name="ql-functions.beginswith"></a>

如果指定的属性以特定子字符串开头，则返回 `TRUE`。

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

```
begins_with(path, value )
```

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

*path*  
（必需）要使用的属性名称或文档路径。

*值*  
（必需）要搜索的字符串。

## 返回类型
<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')
```