MariaDB SUBSTR() Explained

In MariaDB, SUBSTR() is a synonym for SUBSTRING().

It’s a built-in string function that returns a substring from a given string.

It requires at least two arguments; the string, and the position for which to extract the substring from. It also accepts an optional third argument that allows you to specify how long the substring should be.

Read more

How SUBSTRING() Works in MariaDB

In MariaDB, SUBSTRING() is a built-in string function that returns a substring from a given string.

SUBSTRING() requires at least two arguments; the string, and the position for which to extract the substring from. It also accepts an optional third argument that allows you to specify how long the substring should be.

Read more

3 Ways to Drop an Index in MongoDB

MongoDB provides several ways to drop an index or indexes.

To drop a single index, you can use the dropIndex() method.

To drop multiple indexes, you can use either the dropIndexes() method or the dropIndexes administration command.

Read more

How COERCIBILITY() Works in MariaDB

In MariaDB, COERCIBILITY() is a system function that returns the collation coercibility value of its string argument.

It defines how collations will be converted in the case of collation conflict. In such conflicts, an expression with a higher coercibility is converted to the collation of an expression with a lower coercibility.

Read more

How TRIM_ORACLE() Works in MariaDB

In MariaDB, TRIM_ORACLE() is a synonym for the Oracle mode version of the TRIM() function.

TRIM_ORACLE() is available in all modes, so it saves you from having to switch to Oracle mode, which is what you’d need to do if you wanted the TRIM() function to behave like Oracle’s TRIM() function.

The difference is in how each function treats empty strings. Oracle returns null whereas MariaDB returns an empty string.

Read more

How LTRIM_ORACLE() Works in MariaDB

In MariaDB, LTRIM_ORACLE() is a synonym for the Oracle mode version of the LTRIM() function.

LTRIM_ORACLE() is available in all modes, so it saves you from having to switch to Oracle mode, which is what you’d need to do if you wanted the LTRIM() function to behave like Oracle’s LTRIM() function.

The difference is in how each function treats empty strings. Oracle returns null whereas MariaDB returns an empty string.

Read more