Skip to main content

SELECT

Note

Official reference: SELECT.

Switch the logical database of the current connection.

Syntax

SELECT database

Logical database numbers start at zero. Redis Cluster does not support switching between logical databases.

Results

ReturnRowsContent
Update count--Returns 1 on success; throws exception otherwise

Example

SELECT 1
SELECT 0