In MariaDB, RAND()
is a built-in function that returns a random DOUBLE
precision floating point value v
in the range 0 <= v < 1.0
.
Category: Relational
How ACOS() Works in MariaDB
In MariaDB, ACOS()
is a built-in numeric function that returns the arccosine (inverse cosine) of its argument.
In other words, it returns the value whose cosine is the argument.
Continue readingMariaDB POWER() Explained
In MariaDB, POWER()
is a synonym to POW()
, which is built-in function that returns the value of its first argument raised to the power of its second argument.
How POW() Works in MariaDB
In MariaDB, POW()
is a built-in function that returns the value of its first argument raised to the power of its second argument.
How CONV() Works in MariaDB
In MariaDB, CONV()
is a built-in numeric function that converts numbers between different number bases. For example, you can use it to convert a number from base 10 to base 16.
It returns a string representation of the converted number.
Continue readingReplace a String with another String in SQL Server (T-SQL)
In SQL Server you can use the REPLACE()
function to replace all occurrences of a string with another string.
The function accepts three arguments; the string that contains the string to be replaced, the string to be replaced, and the string to replace it.
Continue readingHow the Modulo Operator Works in MariaDB
In MariaDB, the modulo operator (%
) returns the modulo operation. It returns the remainder of its first argument divided by its second argument.
How MOD() Works in MariaDB
In MariaDB, MOD()
is a built-in function that returns the modulo operation. It returns the remainder of its first argument divided by its second argument.
How LEAST() Works in MariaDB
In MariaDB, LEAST()
is a built-in function that returns the least (i.e. smallest/minimum-valued) argument from its list of arguments.
To get the greatest value, use GREATEST()
.
How GREATEST() Works in MariaDB
In MariaDB, GREATEST()
is a built-in function that returns the greatest (i.e. largest/maximum-valued) argument from its list of arguments.
To return the minimum-valued argument, use LEAST()
.