Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (161)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,170)
  • SQLite (299)

Tag: how to

Return the Short Day Name from a Date in Oracle

Posted on 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.

Continue reading →
Oracle date format, dates, how to

Change a Login’s Default Language in SQL Server

Posted on 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.

Continue reading →
SQL Server how to, security

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

Posted on 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.

Continue reading →
Oracle how to, number format

Capitalization of Day and Month Names When Formatting Dates in Oracle

Posted on 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.

Continue reading →
Oracle date format, dates, how to

SQLcl Formatting Options (Oracle)

Posted on 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.

Continue reading →
Database Tools, Oracle how to, sqlcl

Export Oracle Query Results to an HTML File when using SQLcl

Posted on September 28, 2021September 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.

Continue reading →
Oracle export, how to, sqlcl

2 Ways to Replace a Substring in MariaDB

Posted on September 24, 2021 by Ian

If you need to replace a substring with another string in MariaDB, here are two approaches that you can use.

Continue reading →
MariaDB how to, string functions

How to Export Query Results to a CSV File in SQL Developer (Oracle)

Posted on September 23, 2021 by Ian

You can do this to export your query results to a CSV file when using SQL Developer to query Oracle Database.

Continue reading →
Database Tools, Oracle export, how to

Return the Short Month Name from a Date in Oracle

Posted on September 22, 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 month name.

The short month name is also referred to as the abbreviated month name. Examples of returning the short month name are below.

Continue reading →
Oracle date format, dates, how to

UID – Return the ID of the Current Session in Oracle

Posted on September 22, 2021 by Ian

In Oracle Database, the UID function returns an integer that uniquely identifies the session user (the user who logged on).

Continue reading →
Oracle functions, how to, system functions, what is
  • «
  • 1
  • …
  • 107
  • 108
  • 109
  • 110
  • 111
  • …
  • 182
  • »

About Database.Guide | Privacy Policy