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 (156)
  • 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)

Category: Relational

11 Functions to Get the Day, Month, and Year from a Date in MariaDB

Posted on June 18, 2021 by Ian

MariaDB includes many functions for working with dates. Some of these extract certain parts from such dates and return them as a string or integer.

Below are 11 functions that you can use to return various date parts in MariaDB.

Continue reading →
MariaDB date format, dates, how to

How TAN() Works in MariaDB

Posted on June 18, 2021 by Ian

In MariaDB, TAN() is a built-in numeric function that returns the tangent of its argument.

Continue reading →
MariaDB functions, numeric functions, what is

How SQRT() Works in MariaDB

Posted on June 18, 2021 by Ian

In MariaDB, ASIN() is a built-in numeric function that returns the square root of its argument.

Continue reading →
MariaDB date functions, functions, what is

How TO_CHAR() Works in MariaDB

Posted on June 17, 2021September 5, 2021 by Ian

In MariaDB, TO_CHAR() is a built-in string function that converts a date/time expression to a string.

The expression can be a date, datetime, time, or timestamp value.

This function was introduced in MariaDB 10.6.1 to enhance Oracle compatibility.

Continue reading →
MariaDB conversion functions, functions, string functions, what is

How SIGN() Works in MariaDB

Posted on June 17, 2021 by Ian

In MariaDB, SIGN() is a built-in function that returns the sign of its argument as -1, 0, or 1, depending on whether the argument is negative, zero, or positive.

Continue reading →
MariaDB functions, numeric functions, what is

How SIN() Works in MariaDB

Posted on June 17, 2021 by Ian

In MariaDB, SIN() is a built-in numeric function that returns the sine of its argument, where its argument is provided in radians.

Continue reading →
MariaDB functions, numeric functions, what is

How SYS_GUID() Works in MariaDB

Posted on June 16, 2021June 16, 2021 by Ian

In MariaDB, SYS_GUID() is a built-in function that returns a 16-byte globally unique identifier (GUID).

This function was introduced in MariaDB 10.6.1 to enhance Oracle compatibility.

Continue reading →
MariaDB functions, what is

How UUID_SHORT() Works in MariaDB

Posted on June 16, 2021June 16, 2021 by Ian

In MariaDB, UUID_SHORT() is a built-in function that returns a short Universal Unique Identifier (UUID).

It returns a 64-bit unsigned integer (as opposed to the string-form 128-bit identifier as returned by the UUID() function).

Continue reading →
MariaDB functions, what is

How UUID() Works in MariaDB

Posted on June 16, 2021June 16, 2021 by Ian

In MariaDB, UUID() is a built-in function that returns a Universal Unique Identifier (UUID).

The UUID is generated according to “DCE 1.1: Remote Procedure Call” (Appendix A) CAE (Common Applications Environment) Specifications published by The Open Group in October 1997 (Document Number C706).

Continue reading →
MariaDB functions, what is

How ADD_MONTHS() Works in MariaDB

Posted on June 15, 2021August 5, 2021 by Ian

In MariaDB, ADD_MONTHS() is a built-in date and time function that adds a given number of months to a date, and returns the result.

The date can be a date, datetime, or timestamp value.

This function was introduced in MariaDB 10.6.1 to enhance Oracle compatibility. There are at least 6 other ways to add months to a date in MariaDB.

Continue reading →
MariaDB date functions, functions, what is
  • «
  • 1
  • …
  • 118
  • 119
  • 120
  • 121
  • 122
  • …
  • 253
  • »

About Database.Guide | Privacy Policy