- Redis Basics
- Redis - Home
- Redis - Overview
- Redis - Environment
- Redis - Configuration
- Redis - Data types
- Redis Commands
- Redis - Commands
- Redis - Keys
- Redis - Strings
- Redis - Hashes
- Redis - Lists
- Redis - Sets
- Redis - Sorted Sets
- Redis - HyperLogLog
- Redis - Publish Subscribe
- Redis - Transactions
- Redis - Scripting
- Redis - Connections
- Redis - Server
- Redis Advanced
- Redis - Backup
- Redis - Security
- Redis - Benchmarks
- Redis - Client Connection
- Redis - Pipelining
- Redis - Partitioning
- Redis - Java
- Redis - Php
- Redis Useful Resources
- Redis - Quick Guide
- Redis - Useful Resources
- Redis - Discussion
Redis - Connection Select Command
Redis SELECT command is used to select the DB having the specified zero-based numeric index. New connections always use DB 0.
Return Value
String reply.
Syntax
Following is the basic syntax of Redis SELECT command.
redis 127.0.0.1:6379> SELECT DB_INDEX
Example
redis 127.0.0.1:6379> SELECT 1 OK redis 127.0.0.1:6379[1]>
redis_connection.htm
Advertisements
To Continue Learning Please Login
Login with Google