# TO_VARCHAR() Function

### Description

Converts a value to a VARCHAR data type

### Syntax

```sql
TO_VARCHAR(expression [, format])
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _expression_ | Column or expression to evaluate | Any | Yes |

### Example

```sql
SELECT
    TO_VARCHAR(salary)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/to_varchar

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
