In PostgreSQL, we can use the information_schema.views view to return all views in a database.
We can also use the \dv psql command to do the same thing.
When working with MariaDB, you may occasionally find yourself needing to return all rows that don’t contain any numbers.
Technically, numbers can be represented by words and other symbols, but for this article “number” simply means “numerical digit”. So we’re finding values that don’t contain any numerical digits.
The modulo operation returns the remainder or signed remainder of a division, after one number is divided by another.
If you need to get the modulo of a number in MariaDB, here are three options.
Most of the major RDBMSs have a function that enables us to return our query results as a comma separated list.
That is, we can use such a function to convert each row into a separate list item, within a comma separated list.
Below are examples of how to achieve this in some of the more popular RDBMSs.
Here are three examples of returning rows that contain alphanumeric characters in SQL Server.
Alphanumeric characters are alphabetic and numeric characters.
MariaDB includes two selectors that enable us to select elements from JSON arrays:
[N] selects element number N in the array (for example, [0] to select the first element). [*] selects all elements in the array.These can be used in a number of JSON functions that are included in MariaDB. The following examples use them with the JSON_EXTRACT() function in order to return selected array elements.
Here are three options for returning rows that contain lowercase characters in MySQL.
Here are two options for listing out the triggers in a PostgreSQL database.
The following PostgreSQL examples return only those rows that have numeric values in a given column.