From 4d7c19e4e55c9394ff690d2d405a68241da4df54 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Tue, 14 May 2024 08:47:41 +0800 Subject: [PATCH] sql: add a link about regular expression compatibilit with MySQL (#17475) (#17477) --- functions-and-operators/string-functions.md | 2 +- mysql-compatibility.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/functions-and-operators/string-functions.md b/functions-and-operators/string-functions.md index 95a07e99b33c1..fc7ec56e60ef4 100644 --- a/functions-and-operators/string-functions.md +++ b/functions-and-operators/string-functions.md @@ -2322,7 +2322,7 @@ Output: ## Regular expression compatibility with MySQL -The following sections describe the regular expression compatibility with MySQL. +The following sections describe the regular expression compatibility with MySQL, including `REGEXP_INSTR()`, `REGEXP_LIKE()`, `REGEXP_REPLACE()`, and `REGEXP_SUBSTR()`. ### Syntax compatibility diff --git a/mysql-compatibility.md b/mysql-compatibility.md index 4906d69ea1762..151d1d3d3f53a 100644 --- a/mysql-compatibility.md +++ b/mysql-compatibility.md @@ -276,6 +276,10 @@ The following column types are supported by MySQL but **not** by TiDB: - `SQL_TSI_*` (includes SQL_TSI_MONTH, SQL_TSI_WEEK, SQL_TSI_DAY, SQL_TSI_HOUR, SQL_TSI_MINUTE, and SQL_TSI_SECOND, but excludes SQL_TSI_YEAR) +### Regular expressions + +For information about TiDB regular expression compatibility with MySQL, including `REGEXP_INSTR()`, `REGEXP_LIKE()`, `REGEXP_REPLACE()`, and `REGEXP_SUBSTR()`, see [Regular expression compatibility with MySQL](/functions-and-operators/string-functions.md#regular-expression-compatibility-with-mysql). + ### Incompatibility due to deprecated features TiDB does not implement specific features deprecated in MySQL, including: