Below is a list of territories that are supported by Oracle Database. These can be used when setting the NLS_TERRITORY
initialization parameter.
Author: Ian
Change a Login’s Default Language in SQL Server
In SQL Server, you can use the ALTER LOGIN
statement to change the default language for a specific login.
Doing this will ensure that whenever that login connects to SQL Server, all date/time formats and system messages are presented in the correct format and language.
Continue readingHow to Convert Decimal to Hexadecimal using TO_CHAR() in Oracle
In Oracle Database, you can use the TO_CHAR()
function to convert a number to its hexadecimal equivalent. To do this, use the X
format element.
Capitalization of Day and Month Names When Formatting Dates in Oracle
When getting the day and/or month name from a date in Oracle, you may want to return it in uppercase, lowercase, or title case.
Fortunately, this is easy to do. The result reflects the capitalisation of your format model.
Continue readingJSON_OBJECTAGG() Function in Oracle
In Oracle Database, the JSON_OBJECTAGG()
function creates a JSON object from a key-value pair.
Typically, the property key, the property value, or both are columns of SQL expressions.
Continue readingSQLcl Formatting Options (Oracle)
When using SQLcl to query Oracle Database, you can use the SET SQLFORMAT
command to determine the format of the results.
You can also use inline comments to specify the format from directly within your query.
Continue readingJSON_OBJECT() Function in Oracle
In Oracle Database, the JSON_OBJECT()
function creates a JSON object from a sequence of key-value pairs or one object type instance.
Export Oracle Query Results to an HTML File when using SQLcl
When using SQLcl with Oracle Database, you can use the SPOOL
command to export your query results to a file with an .html
extension, and you can set SQLFORMAT
to html
in order to output the actual query results in HTML format.
JSON_ARRAYAGG() Function in Oracle
In Oracle Database, the JSON_ARRAYAGG()
function creates a JSON array from a column of SQL expressions.
JSON_ARRAY() Function in Oracle
In Oracle Database, the JSON_ARRAY()
function creates a JSON array from a sequence of SQL scalar expressions or one collection type instance, VARRAY
or NESTED TABLE
.