HGET
AttentionThis page documents an earlier version. Go to the latest (v2.1)version.
Synopsis
HGET key field
This command fetches the value for the given field
in the hash that is specified by the given key
.
- If the given
key
orfield
does not exist, nil is returned. - If the given
key
is associated with non-hash data, an error is raised.
Return Value
Returns the value for the given field
Examples
You can do this as shown below.
$ HSET yugahash area1 "America"
1
$ HGET yugahash area1
"America"
See Also
hdel
, hexists
, hgetall
, hkeys
, hlen
, hmget
, hmset
, hset
, hincrby
, hstrlen
, hvals
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .