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

Tag: string functions

How the POSITION() Function Works in MySQL

Posted on April 7, 2019November 19, 2019 by Ian

In MySQL, the POSITION() function returns the position of the first occurrence of a substring within the string.

This function is actually a synonym for LOCATE(), but with a slightly different syntax. The LOCATE() function also has extra functionality, in that it allows you to define a starting position fro your search.

Continue reading →

MySQL functions, string functions

How the OCTET_LENGTH() Function Works in MySQL

Posted on April 7, 2019November 19, 2019 by Ian

In MySQL, the OCTET_LENGTH() function returns the length of a string, measured in bytes.

This function is actually a synonym of LENGTH().

Continue reading →

MySQL functions, string functions

How the OCT() Function Works in MySQL

Posted on April 2, 2019November 19, 2019 by Ian

In MySQL, the OCT() function is used for converting from decimal to octal.

More precisely, it returns a string representation of the octal value of its argument.

Continue reading →

MySQL functions, string functions

How The SUBSTR() Function Works in MySQL

Posted on March 14, 2019February 14, 2020 by Ian

In MySQL, the SUBSTR() function returns a substring starting from the specified position.

Both SUBSTR() and MID() are synonyms of SUBSTRING().

Continue reading →

MySQL functions, how to, string functions

How the MID() Function Works in MySQL

Posted on February 28, 2019February 14, 2020 by Ian

In MySQL, the MID() function returns a substring starting from the specified position.

Both MID() and SUBSTR() are synonyms of SUBSTRING().

Continue reading →

MySQL functions, how to, string functions

How the RTRIM() Function Works in MySQL

Posted on January 31, 2019November 19, 2019 by Ian

In MySQL, the RTRIM() function trims whitespace from the right-hand side of a string.

Continue reading →

MySQL functions, string functions

How the LTRIM() Function Works in MySQL

Posted on January 26, 2019November 19, 2019 by Ian

In MySQL, the LTRIM() function trims whitespace from the beginning of a string.

Continue reading →

MySQL functions, string functions

How the RPAD() Function Works in MySQL

Posted on January 25, 2019November 19, 2019 by Ian

In MySQL, the RPAD() function allows you to pad the right part of a string with one or more characters.

The way it works is, you specify the string to pad, the length of the padding, as well as the string of characters to use for the padding.

Continue reading →

MySQL functions, string functions

How the LPAD() Function Works in MySQL

Posted on January 24, 2019November 19, 2019 by Ian

In MySQL, the LPAD() function allows you to pad the left part of a string with one or more characters.

The way it works is, you specify the string to pad, the length of the padding, as well as the string of characters to use for the padding.

Continue reading →

MySQL functions, string functions

How the LOCATE() Function Works in MySQL

Posted on January 16, 2019November 19, 2019 by Ian

In MySQL, the LOCATE() function returns the position of a substring within a string. More specifically, it returns the position of the first occurrence within the string, or the first occurrence after a given starting point.

Continue reading →

MySQL functions, string functions
  • «
  • 1
  • …
  • 23
  • 24
  • 25
  • 26
  • 27
  • …
  • 33
  • »

About Database.Guide | Privacy Policy