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.
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 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.
Below are two methods for returning rows that only contain alphanumeric characters in PostgreSQL.
Alphanumeric characters are alphabetic characters and numeric characters.
In Oracle Database, when using the TO_CHAR() function to return the day name from a date, padding will be appended to the day name if it’s shorter than the longest valid day name for the given language and calendar.
Well, that’s the default behaviour. However, you can change this if you wish.
To suppress this padding, all you need to do is prepend the day name format element with fm.
Here are four options for returning rows that contain lowercase characters in Oracle Database.
Oracle Database includes several views that contain information about triggers in the database. We can use these views to return a list of triggers.
The following examples return only those rows that have numeric values in a given column in Oracle Database.
These examples use the REGEXP_LIKE function to return values that match the specified pattern.