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

Replace Multiple Characters in a String in SQL Server (T-SQL)

Posted on July 20, 2021 by Ian

In SQL Server, the REPLACE() function enables us to replace a string with another string. But what if you want to replace a list of characters with another list of characters?

The TRANSLATE() function might help.

Continue reading →
SQL Server how to, mssql, string functions, t-sql

MariaDB LTRIM() vs LTRIM_ORACLE(): What’s the Difference?

Posted on June 29, 2021 by Ian

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

Continue reading →
MariaDB functions, string functions, what is

MariaDB String Functions (Full List)

Posted on June 23, 2021 by Ian

This article contains a full list of built-in MariaDB string functions and operators.

Continue reading →
MariaDB reference, string functions

Difference Between TRIM() and TRIM_ORACLE() in MariaDB

Posted on 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.

Continue reading →
MariaDB functions, string 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

Replace a String with another String in SQL Server (T-SQL)

Posted on June 9, 2021 by Ian

In SQL Server you can use the REPLACE() function to replace all occurrences of a string with another string.

The function accepts three arguments; the string that contains the string to be replaced, the string to be replaced, and the string to replace it.

Continue reading →
SQL Server how to, mssql, string functions, t-sql

Insert Characters into the Middle of a String in SQL Server (T-SQL)

Posted on May 31, 2021 by Ian

SQL Server provides the STUFF() function that enables you to insert a string inside another string.

The function also allows you to specify the number of characters (if any) to delete from the original string in order to fit the new string.

Continue reading →
SQL Server how to, mssql, string functions, t-sql

How REGEXP_REPLACE() Works in MariaDB

Posted on April 29, 2021July 26, 2021 by Ian

In MariaDB, 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 →
MariaDB functions, regex, string functions, what is

How REGEXP_SUBSTR() Works in MariaDB

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

In MariaDB, 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 an empty string.

Continue reading →
MariaDB functions, regex, string functions, what is

How REGEXP_INSTR() Works in MariaDB

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

In MariaDB, 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 →
MariaDB functions, regex, string functions, what is
  • «
  • 1
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • …
  • 33
  • »

About Database.Guide | Privacy Policy