Skip to content

Database.Guide

Database Relationships Explained

December 25, 2025June 21, 2021 by Ian

If you’re new to relational databases, and you’re trying to get your head around this concept of a “relationship” in your database, I hope this article helps.

Read more

Categories Database Concepts Tags relationships, what is

Get the Day of the Year from a Date in SQL Server (T-SQL)

June 21, 2021 by Ian

TSQL provides the DATEPART() function, which enables us to return the day of the year for a given date in SQL Server.

By “day of the year”, I mean the day number of the given year.

Read more

Categories SQL Server Tags dates, how to, mssql, t-sql

Difference Between TRIM() and TRIM_ORACLE() in MariaDB

June 21, 2021 by Ian

MariaDB has a TRIM() function and a TRIM_ORACLE() function. Both functions do essentially the same thing. But there is a minor difference.

Read more

Categories MariaDB Tags functions, string functions, what is

4 Functions that Extract Microseconds from a Time Value in MariaDB

June 20, 2021 by Ian

Below are 4 functions that enable you to return the microseconds part from a time value in MariaDB.

Read more

Categories MariaDB Tags dates, how to, time format

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

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.

Read more

Categories MongoDB Tags aggregation, operators

How SLEEP() Works in MariaDB

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.

Read more

Categories MariaDB Tags functions, what is

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

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.

Read more

Categories MariaDB Tags date format, dates, how to

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

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.

Read more

Categories MariaDB Tags dates, errors, how to

How OCT() Works in MariaDB

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.

Read more

Categories MariaDB Tags functions, numeric functions, what is

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

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.

Read more

Categories MariaDB Tags date format, dates, how to
Older posts
Newer posts
← Previous Page1 … Page240 Page241 Page242 … Page423 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved