In MySQL, CURRENT_USER()
is a built-in function that returns the user name and host name combination for the MySQL account that the server used to authenticate the current client.
Tag: what is
MySQL USER() Explained
In MySQL, USER()
is a built-in function that returns the current MySQL user name and host name, given when connecting to MySQL.
The result is returned as a string in the utf8mb3
 character set.
The value returned by USER()
could be different to the value returned by CURRENT_USER()
.
Redis ZRANGESTORE Command Explained
In Redis, the ZRANGESTORE
command works just like the ZRANGE
command except that it stores the result in a key.
Basically, it allows us to get all members from a sorted set between a certain range and store them in a new key.
Continue readingRedis ZMSCORE Command Explained
In Redis, the ZMSCORE
command allows us to get the score of one or members in a sorted set.
Redis ZSCORE Command Explained
In Redis, the ZSCORE
command returns the score of the specified member of a sorted set.
How TRY_PARSE() Works in SQL Server
In SQL Server, the TRY_PARSE()
function returns the result of an expression, translated to the requested data type, or NULL
if the conversion fails.
Basically, it works the same as the PARSE()
function, except that it returns NULL
instead of an error if the cast fails.
Both functions are intended for converting string values to either date/time or number types.
Continue readingHow PARSE() Works in SQL Server
In SQL Server, the PARSE()
function returns the result of an expression, translated to the requested data type.
Basically, it enables us to parse a string expression to the specified data type. It’s intended for converting string values to either date/time or number types.
The PARSE()
function can be handy when attempting to convert with CAST()
or CONVERT()
fails. The PARSE()
function is able to parse the expression, and this may result in certain values being converted that wouldn’t normally be able to be converted.
Redis HSTRLEN Command
The Redis HSTRLEN
command allows us to get the length of a value that’s stored in a hash. It returns the string length of the value associated with the specified field at the hash stored in the specified key.
Redis ZUNIONSTORE Command Explained
In Redis, the ZUNIONSTORE
command works in the same way that ZUNION
works, except that it stores the result in a key that we specify.
In other words, it computes the union of the specified sorted sets, then stores the result in the specified key.
Continue readingRedis ZUNION Command Explained
In Redis, the ZUNION
command returns the union of the specified sorted sets.