---
schema_version: "1"
id: 8fe4f67d165799eb052e0516014fa26f9926668635a3bfe1b4012fc8c8cbd0d4
title: REPEAT
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/references/data-cloud-sql-reference/scalar-func/string-func/repeat.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/repeat.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 36e552a42e6979e1944d84d791af92526a56e97bb1e5f5c84dd1b4eb78601fe6
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# `REPEAT`

**Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

Repeats a string a specified number of times.

## Syntax

```sql
repeat(<string>, <count>)
```

## Arguments

### Required

- `<string>`: The string to repeat.
- `<count>`: The number of times to repeat.

## Returns

Returns a text value that contains the repeated string.

## Considerations

- If count is 0 or negative, returns an empty string.
- Large counts may consume significant memory.

## Examples

### Repeat String

Repeat a string multiple times.

```sql
SELECT repeat('Hyper!', 2) AS result;
```

Returns `'Hyper!Hyper!'`.

## Related Documentation

- [String Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/datatype/string.md)
