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

Category: MySQL

How the CHARACTER_LENGTH() Function Works in MySQL

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

In MySQL, the CHARACTER_LENGTH() function returns the length of a string, measured in characters.

CHARACTER_LENGTH() is a synonym for the CHAR_LENGTH() function.

Continue reading →

MySQL functions, string functions

How the SOUNDS LIKE Operator Works in MySQL

Posted on April 24, 2019February 14, 2020 by Ian

In MySQL, you can use the SOUNDS LIKE operator to return results that sound like a given word.

This operator works best on strings in the English language (using it with other languages may return unreliable results).

Continue reading →

MySQL functions, how to, operators, string functions

How NOT LIKE Works in MySQL

Posted on April 24, 2019February 14, 2020 by Ian

In MySQL, you can use NOT LIKE to perform a negation of the LIKE operator. In other words, NOT LIKE returns the opposite result to LIKE.

If the string matches the pattern provided, the result is 0, otherwise it’s 1.

The pattern doesn’t necessarily need to be a literal string. This function can be used with string expressions and table columns.

Continue reading →

MySQL how to, operators, string functions

How the LIKE Operator Works in MySQL

Posted on April 24, 2019February 14, 2020 by Ian

In MySQL, the LIKE operator performs pattern matching using an SQL pattern.

If the string matches the pattern provided, the result is 1, otherwise it’s 0.

The pattern doesn’t necessarily need to be a literal string. This function can be used with string expressions and table columns.

Continue reading →

MySQL how to, operators, string functions

How the REGEX_REPLACE() Function Works in MySQL

Posted on April 22, 2019April 29, 2021 by Ian

In MySQL, the REGEXP_REPLACE() function replaces occurrences of the substring within a string that matches the given regular expression pattern.

The whole string is returned along with the replacements.

If there’s no match (i.e. the input string doesn’t contain the substring), the the whole string is returned unchanged.

Continue reading →

MySQL functions, regex, string functions

How the REGEXP_INSTR() Function Works in MySQL

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

In MySQL, the REGEXP_INSTR() function returns the starting index of a substring that matches the regular expression pattern.

The index starts at 1. If there’s no match, the result is 0.

Continue reading →

MySQL functions, regex, string functions

How the REGEXP_SUBSTR() Function Works in MySQL

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

In MySQL, the REGEXP_SUBSTR() function returns the substring that matches the given regular expression pattern.

If there’s no match (i.e. the input string doesn’t contain the substring), the result is NULL.

Continue reading →

MySQL functions, regex, string functions

How NOT RLIKE Works in MySQL

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

In MySQL, NOT RLIKE is a negation of the RLIKE operator.

In other words, any time the RLIKE operator would return 1, NOT RLIKE will return 0.

Continue reading →

MySQL functions, operators, regex, string functions

How NOT REGEXP Works in MySQL

Posted on April 19, 2019February 14, 2020 by Ian

In MySQL, NOT REGEXP is a negation of the REGEXP operator.

In other words, if the string matches the regular expression provided, the result is 0, otherwise it’s 1. This is the opposite result to what the REGEXP would return (when it isn’t prefixed with NOT).

Continue reading →

MySQL how to, operators, regex, string functions

How the RLIKE Operator Works in MySQL

Posted on April 18, 2019February 14, 2020 by Ian

In MySQL, the RLIKE operator is used to determine whether or not a string matches a regular expression. It’s a synonym for REGEXP_LIKE().

If the string matches the regular expression provided, the result is 1, otherwise it’s 0.

Continue reading →

MySQL functions, how to, operators, regex, string functions
  • «
  • 1
  • …
  • 33
  • 34
  • 35
  • 36
  • 37
  • …
  • 61
  • »

About Database.Guide | Privacy Policy