MariaDB has a lc_time_names
system variable that controls the language used by the DAYNAME()
, MONTHNAME()
and DATE_FORMAT()
date and time functions.
Here’s how to set the value of that variable.
Continue readingDatabase Management Systems
MariaDB has a lc_time_names
system variable that controls the language used by the DAYNAME()
, MONTHNAME()
and DATE_FORMAT()
date and time functions.
Here’s how to set the value of that variable.
Continue readingIf you’re getting SQL Server error Msg 529 that reads something like Explicit conversion from data type int to xml is not allowed, it’s probably because you’re trying to perform a data type conversion that’s not permitted.
SQL Server doesn’t allow certain conversions. If you try to perform such a conversion, you’ll get this error.
Continue readingBelow are 4 functions that enable you to return the month from a date in MariaDB.
Continue readingIn PostgreSQL, we can use the IF EXISTS
clause of the DROP TABLE
statement to check whether the table exists or not before dropping it.
The following SQLite examples return only those rows that have numeric values in a given column.
Continue readingIf you’re getting SQL Server error Msg 8116 with the message Argument data type varchar is invalid for argument 1 of session_context function, it’s because you’re passing the wrong data type to a function – in this case the SESSION_CONTEXT()
function.
Below are three ways to return time zone information from a datetime value in Oracle Database.
Continue readingYou 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.
Continue readingBelow are two options we can use to return a list of functions in MySQL.
Continue readingIn Oracle Database, the RM
format element allows you to return the month in roman numerals when using the TO_CHAR()
function.
You can also use the fm
modifier to suppress any padding.