---
title: like (Column)
description: "Column.like method in PySpark: SQL LIKE pattern matching."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/column/like
---

# like (Column)

SQL LIKE pattern matching.

## Syntax

```python
like(other)
```

## Parameters

| Parameter | Type | Description             |
| --------- | ---- | ----------------------- |
| `other`   | str  | SQL LIKE pattern string |

## Returns

Column (boolean)

## Examples

```python
df = spark.createDataFrame(
     [(2, "Alice"), (5, "Bob")], ["age", "name"])
df.filter(df.name.like('Al%')).collect()
```

```Output
# [Row(age=2, name='Alice')]
```
