SELECT

Since 1.1.0Server

Syntax

SELECT index
  • Flags: fast, write
  • ACL categories: @fast, @server, @write
  • Arity: 2

Makes database index the connection's current one. There are 16, 0 to 15, unless databases says otherwise; new connections start on 0. In a cluster only database 0 exists.

Reply

  • OK.
  • ERR DB index is out of range.

Examples

> SELECT 1
OK
> SELECT 16
(error) ERR DB index is out of range