How the JSONPath Wildcard Step (**) Works in MariaDB

When working with JSON in MariaDB, you can use JSONPath expressions to manipulate data within a JSON document.

One powerful feature that MariaDB provides is the wildcard step (**). This allows you to recursively select all child elements of the current element.

The wildcard step is a non-standard extension, and it’s also supported with the same meaning in MySQL.

Read more

Set the Character Set and Collation of a Column in MariaDB

You can specify the character set and collation at various levels in MariaDB. You can specify them at the connection level, the server level, the database level, the table level, and even the column level.

You can also specify a collation in your queries so that it overrides any collation that has been previously specified at the aforementioned levels.

Read more

How to Check a Column’s Data Type in SQL

In SQL, the columns information schema view, which returns information about columns, is an ISO standard view that is supported by most of the major RDBMSs. You can use this view to get information about a column’s data type.

Most of the major RDBMs also provide other methods for getting column information.

Here are examples of getting the data type of a column in various SQL databases.

Read more