Learn SQL and Database by Examples

SQLiz.com provides database-related articles, tutorials to help you learn SQL and Databases. You can find MySQL, PostgreSQL, Oracle, SQL Server, SQLite, Mongo, Redis tutorials here.

All tutorials on the site come with practical examples. Hope to help you learn SQL and databases faster.

How the VAR_SAMP() function works in Mariadb?

The VAR_SAMP() function in MariaDB is used to calculate the sample variance of a set of values.

How the VAR_POP() function works in Mariadb?

The VAR_POP() function in MariaDB is used to calculate the population variance of a set of values.

How the UUID() function works in Mariadb?

The UUID() function in MariaDB is used to generate a universally unique identifier (UUID), which is a 128-bit number that is designed to be unique across space and time.

How the UUID_SHORT() function works in Mariadb?

The UUID_SHORT() function in MariaDB is used to generate a 64-bit universally unique identifier (UUID).

How the REGEXP() function works in Mariadb?

The REGEXP() function is a string function that returns 1 if a string matches a given regular expression pattern, or 0 otherwise.

How the UTC_TIMESTAMP() function works in Mariadb?

The UTC_TIMESTAMP() function in MariaDB returns the current date and time in the Coordinated Universal Time (UTC) time zone.

How the REGEXP_SUBSTR() function works in Mariadb?

The REGEXP_SUBSTR() function is a string function that returns the substring that matches a given regular expression pattern in a subject string.

How the PointOnSurface() function works in Mariadb?

The PointOnSurface() function is a built-in function in Mariadb that returns a point geometry that is guaranteed to lie on the surface of a given geometry.

How the UTC_TIME() function works in Mariadb?

The UTC_TIME() function in MariaDB is used to retrieve the current time in the UTC (Coordinated Universal Time) time zone.

How the REGEXP_REPLACE() function works in Mariadb?

The REGEXP_REPLACE() function is a string function that returns a new string where the occurrences of a regular expression pattern are replaced by a specified replacement string in a subject string.

How the PointN() function works in Mariadb?

The PointN() function is a built-in function in Mariadb that returns the N-th point of a linestring geometry.

How the UTC_DATE() function works in Mariadb?

The UTC_DATE() function in MariaDB is used to retrieve the current date in the UTC (Coordinated Universal Time) time zone.

How the REGEXP_INSTR() function works in Mariadb?

The REGEXP_INSTR() function is a string function in Mariadb that returns the position of the first occurrence of a regular expression pattern in a string.

How the PointFromWKB() function works in Mariadb?

The PointFromWKB() function is a built-in function in Mariadb that returns a point geometry that represents a location in a two-dimensional space.

How the USER() function works in Mariadb?

he USER() function in MariaDB is used to retrieve the username and hostname of the user that is currently connected to the MariaDB server.

How the RANK() function works in Mariadb?

The RANK() function is a window function in Mariadb that returns the rank of a row within a partition of a result set.

How the PointFromText() function works in Mariadb?

The PointFromText() function is a built-in function in Mariadb that returns a point geometry that represents a location in a two-dimensional space.

How the UPPER() function works in Mariadb?

The UPPER() function in MariaDB is used to convert a string to uppercase.

How the RAND() function works in Mariadb?

The RAND() function is a mathematical function in Mariadb that returns a random decimal number between 0 and 1.

How the POINT() function works in Mariadb?

The POINT() function is a built-in function in Mariadb that returns a point geometry that represents a location in a two-dimensional space.

How the UPDATEXML() function works in Mariadb?

The UPDATEXML() function in MariaDB is used to modify a portion of an XML-formatted string by replacing, inserting, or deleting nodes or values within the XML structure.

How the RADIANS() function works in Mariadb?

The RADIANS() function is a mathematical function in Mariadb that returns the value of an angle in radians.

How the PI() function works in Mariadb?

The PI() function is a built-in function in Mariadb that returns the value of the mathematical constant pi, which is approximately 3.14159.

How the UNIX_TIMESTAMP() function works in Mariadb?

The UNIX_TIMESTAMP() function in MariaDB is used to retrieve the current Unix timestamp or convert a date and time value into a Unix timestamp.

How the QUOTE() function works in Mariadb?

The QUOTE() function is a string function in Mariadb that returns a single-quoted string that is safe to use in a SQL statement.

How the PERIOD_DIFF() function works in Mariadb?

The PERIOD_DIFF() function is a built-in function in Mariadb that returns the number of months between two periods.

How the UNHEX() function works in Mariadb?

The UNHEX() function in MariaDB is used to convert a hexadecimal string representation of a value into a string or binary value.

How the QUARTER() function works in Mariadb?

The QUARTER() function is a date and time function in Mariadb that returns the quarter of the year for a given date.

How the PERIOD_ADD() function works in Mariadb?

The PERIOD_ADD() function is a built-in function in Mariadb that returns a period that is a number of months away from a given period.

How the UNCOMPRESSED_LENGTH() function works in Mariadb?

The UNCOMPRESSED_LENGTH() function in MariaDB is used to determine the length of a compressed string before it is uncompressed.