---
id: range
title: "range()"
slug: range
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
import TabsPanel from '@theme/TabsPanel';
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)
```
## 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)
```