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 (151)
  • 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: DBMS

Database Management Systems

$strLenBytes vs $strLenCP in MongoDB: What’s the Difference?

Posted on June 20, 2021 by Ian

MongoDB includes the $strLenBytes and $strLenCP operators in its aggregation pipeline framework. These operators do a similar but slightly different thing. In some cases, both will return exactly the same result, while in other cases the results will differ.

Here’s a quick overview of the difference between these two operators.

Continue reading →
MongoDB aggregation, operators

How SLEEP() Works in MariaDB

Posted on June 20, 2021 by Ian

In MariaDB, SLEEP() is a built-in function that sleeps (pauses) for the number of seconds specified by its argument.

If uninterrupted, it returns 0, if interrupted, it returns 1.

Continue reading →
MariaDB functions, what is

3 Ways to Get the Day Name from a Date in MariaDB

Posted on June 19, 2021 by Ian

Below are three approaches you can use to get the day name from a date in MariaDB.

Two of these approaches return the full day name, and one returns the short day name.

Continue reading →
MariaDB date format, dates, how to

Fix: “Unknown table ‘locales’ in information_schema” in MariaDB

Posted on June 19, 2021 by Ian

If you get the Unknown table 'locales' in information_schema error in MariaDB, it’s probably because you haven’t installed the LOCALES plugin yet.

You need to install the LOCALES plugin before you try to query this table.

Continue reading →
MariaDB dates, errors, how to

How OCT() Works in MariaDB

Posted on June 19, 2021 by Ian

In MariaDB, OCT() is a built-in function that returns a string representation of the octal value of its argument.

Continue reading →
MariaDB functions, numeric functions, what is

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
  • «
  • 1
  • …
  • 195
  • 196
  • 197
  • 198
  • 199
  • …
  • 369
  • »

About Database.Guide | Privacy Policy