---
id: range
title: "range()"
slug: range
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Limits the result to rows within the specified range, inclusive.
```js
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.range(0,3)
```
```py
# Not yet implemented
```
## Parameters
-
from
required
number
The starting index from which to limit the result, inclusive.
-
to
required
number
The last index to which to limit the result, inclusive.
-
__namedParameters
required
object
No description provided.
## Examples
### With `select()`
```js
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.range(0,3)
```
```py
# Not yet implemented
```