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 (170)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,170)
  • SQLite (300)

Tag: functions

How OCTET_LENGTH() Works in MariaDB

Posted on April 7, 2021April 7, 2021 by Ian

In MariaDB, OCTET_LENGTH() is a built-in string function that returns the length of the given string argument, measured in octets (bytes).

OCTET_LENGTH() is a synonym for LENGTHB().

It’s also a synonym for LENGTH() when not in Oracle mode (LENGTH() behaves differently in Oracle mode).

Continue reading →
MariaDB functions, string functions, what is

MariaDB LENGTHB() Explained

Posted on April 7, 2021April 27, 2021 by Ian

In MariaDB, LENGTHB() is a built-in string function that returns the length of the given string argument, measured in bytes.

Continue reading →
MariaDB functions, string functions, what is

How LENGTH() Works in MariaDB

Posted on April 6, 2021April 6, 2021 by Ian

In MariaDB, LENGTH() is a built-in string function that returns the length of the given string argument.

When in default mode, the length of the string is measured in bytes. But when in Oracle mode, it’s measured in characters.

Continue reading →
MariaDB functions, string functions, what is

MariaDB CHARACTER_LENGTH() Explained

Posted on April 6, 2021April 6, 2021 by Ian

In MariaDB, CHARACTER_LENGTH() is a built-in string function that returns the length of the given string argument, measured in characters.

CHARACTER_LENGTH() is actually a synonym for CHAR_LENGTH(), so you can use either.

Continue reading →
MariaDB functions, string functions, what is

How CHAR_LENGTH() Works in MariaDB

Posted on April 6, 2021April 6, 2021 by Ian

In MariaDB, CHAR_LENGTH() is a built-in string function that returns the length of the given string argument, measured in characters.

Continue reading →
MariaDB functions, string functions, what is

How CONVERT() Works in MariaDB

Posted on April 5, 2021February 8, 2023 by Ian

In MariaDB, CONVERT() is a built in function that converts a value to another data type. It takes a value of one type and returns a value of the specified type.

You provide the value as an argument when you call the function, as well as the type that you’d like it converted to.

CONVERT() is similar to CAST().

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

How CAST() Works in MariaDB

Posted on April 5, 2021April 3, 2023 by Ian

In MariaDB, CAST() is a built in function that converts a value to another data type. It takes a value of one type and returns a value of the specified type.

You provide the value as an argument when you call the function, as well as the type that you’d like it converted to.

CAST() works similar to CONVERT().

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

How CHARSET() Works in MariaDB

Posted on April 5, 2021April 5, 2021 by Ian

In MariaDB, CHARSET() is a secondary built in function that returns the character set of a given string.

We provide the string when we call the function.

Continue reading →
MariaDB character sets, functions, string functions, what is

How BIT_LENGTH() Works in MariaDB

Posted on April 4, 2021April 4, 2021 by Ian

In MariaDB, BIT_LENGTH() is a built in string function that returns the length of the given string argument in bits.

You provide the string as an argument when you call the function.

Continue reading →
MariaDB functions, string functions, what is

How BIN() Works in MariaDB

Posted on April 3, 2021April 3, 2021 by Ian

In MariaDB, BIN() is a built in string function that returns a string representation of the binary value of the given longlong (i.e. BIGINT) number.

You provide the longlong number when you call the function.

Continue reading →
MariaDB functions, string functions, what is
  • «
  • 1
  • …
  • 78
  • 79
  • 80
  • 81
  • 82
  • …
  • 147
  • »

About Database.Guide | Privacy Policy