Skip to content

Database.Guide

Return the Short Day Name from a Date in Oracle

October 5, 2021 by Ian

In Oracle Database, we can use the TO_CHAR(datetime) function to return the various date parts from a datetime value, including the short day name.

The short day name is also referred to as the abbreviated day name. In any case, below are examples of returning the short day name from a date value in Oracle.

Read more

Categories Oracle Tags date format, dates, how to

List of Territories Supported by Oracle Database

October 4, 2021 by Ian

Below is a list of territories that are supported by Oracle Database. These can be used when setting the NLS_TERRITORY initialization parameter.

Read more

Categories Oracle Tags reference

Change a Login’s Default Language in SQL Server

October 3, 2021 by Ian

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.

Read more

Categories SQL Server Tags how to, security

How to Convert Decimal to Hexadecimal using TO_CHAR() in Oracle

October 2, 2021 by Ian

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.

Read more

Categories Oracle Tags how to, number format

Capitalization of Day and Month Names When Formatting Dates in Oracle

October 1, 2021 by Ian

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.

Read more

Categories Oracle Tags date format, dates, how to

JSON_OBJECTAGG() Function in Oracle

September 30, 2021 by Ian

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.

Read more

Categories Oracle Tags functions, json, what is

SQLcl Formatting Options (Oracle)

September 29, 2021 by Ian

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.

Read more

Categories Database Tools, Oracle Tags how to, sqlcl

JSON_OBJECT() Function in Oracle

September 29, 2021 by Ian

In Oracle Database, the JSON_OBJECT() function creates a JSON object from a sequence of key-value pairs or one object type instance.

Read more

Categories Oracle Tags functions, json, what is

Export Oracle Query Results to an HTML File when using SQLcl

September 28, 2021 by Ian

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.

Read more

Categories Oracle Tags export, how to, sqlcl

JSON_ARRAYAGG() Function in Oracle

April 28, 2024September 28, 2021 by Ian

In Oracle Database, the JSON_ARRAYAGG() function creates a JSON array from a column of SQL expressions.

Read more

Categories Oracle Tags arrays, functions, json, what is
Older posts
Newer posts
← Previous Page1 … Page213 Page214 Page215 … Page423 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved