Skip to main content
The SHOW RANGE ... FOR ROW shows information about a for a single row in a table or index. This information is useful for verifying how SQL data maps to underlying ranges, and where the replicas for a range are located.
This feature is in and subject to change. To share feedback and/or issues, contact Support.
To show information about the ranges for all data in a table, index, or database, use the statement.

Syntax

Required privileges

The user must have the SELECT on the target table.

Parameters

Response

The following fields are returned:

Examples

Setup

To follow along, run to start a temporary, in-memory cluster with the sample dataset preloaded:

Show range information for a row in a table

To show information about a row in a table, you must know the values of the columns in the row’s primary key:

Show range information for a row by a secondary index

To show information about a row in a secondary index, you must know the values of the indexed columns:

See also