redis_select()

Read(199) Label: change, selected database, index,

Description:

Change the selected database for the current connection; the database index is a number that starts from 0.

Syntax:

redis_select(con,index) 

Note:

This external library function uses the number 0 database by default.

Parameters:

con

Database connection string

index

Index number

Return value:

OK

Example

 

A

B

1

=redis("192.168.18.131:6379","runqian")

 

2

=redis_select(A1,1)