diff --git a/docs/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md b/docs/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md deleted file mode 100644 index b23bfd29b5d44..0000000000000 --- a/docs/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -{ - "title": "LEVENSHTEIN", - "language": "en", - "description": "The LEVENSHTEIN function returns the Levenshtein edit distance between two strings." -} ---- - -## Description -The `LEVENSHTEIN` function returns the Levenshtein edit distance between two strings. -The distance is the minimum number of single-character insertions, deletions, or substitutions required to transform one string into the other. - -This function counts characters in UTF-8. - -## Syntax -```sql -LEVENSHTEIN(, ) -``` - -## Parameters -| Parameter | Description | -| -- | -- | -| `` | First string | -| `` | Second string | - -## Return Value -Returns an INT value. - -## Examples -```sql -SELECT levenshtein('kitten', 'sitting'); -- 3 -SELECT levenshtein('数据库', '数据'); -- 1 -``` - -## Notes -- Supports UTF-8 characters. -- NULL input returns NULL. diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md deleted file mode 100644 index bbd1eb5d93fd1..0000000000000 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: LEVENSHTEIN ---- - -## 描述 -`LEVENSHTEIN` 函数用于计算两个字符串之间的编辑距离。 -编辑距离是把一个字符串变成另一个字符串所需的最少单字符插入、删除或替换次数。 - -该函数按 UTF-8 字符计数。 - -## 语法 -```sql -LEVENSHTEIN(, ) -``` - -## 参数 -| 参数 | 说明 | -| -- | -- | -| `` | 第一个字符串 | -| `` | 第二个字符串 | - -## 返回值 -返回 INT。 - -## 示例 -```sql -SELECT levenshtein('kitten', 'sitting'); -- 3 -SELECT levenshtein('数据库', '数据'); -- 1 -``` - -## 说明 -- 支持 UTF-8 字符。 -- 任意参数为 NULL 时返回 NULL。 diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md deleted file mode 100644 index bbd1eb5d93fd1..0000000000000 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -title: LEVENSHTEIN ---- - -## 描述 -`LEVENSHTEIN` 函数用于计算两个字符串之间的编辑距离。 -编辑距离是把一个字符串变成另一个字符串所需的最少单字符插入、删除或替换次数。 - -该函数按 UTF-8 字符计数。 - -## 语法 -```sql -LEVENSHTEIN(, ) -``` - -## 参数 -| 参数 | 说明 | -| -- | -- | -| `` | 第一个字符串 | -| `` | 第二个字符串 | - -## 返回值 -返回 INT。 - -## 示例 -```sql -SELECT levenshtein('kitten', 'sitting'); -- 3 -SELECT levenshtein('数据库', '数据'); -- 1 -``` - -## 说明 -- 支持 UTF-8 字符。 -- 任意参数为 NULL 时返回 NULL。 diff --git a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md deleted file mode 100644 index b23bfd29b5d44..0000000000000 --- a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/levenshtein.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -{ - "title": "LEVENSHTEIN", - "language": "en", - "description": "The LEVENSHTEIN function returns the Levenshtein edit distance between two strings." -} ---- - -## Description -The `LEVENSHTEIN` function returns the Levenshtein edit distance between two strings. -The distance is the minimum number of single-character insertions, deletions, or substitutions required to transform one string into the other. - -This function counts characters in UTF-8. - -## Syntax -```sql -LEVENSHTEIN(, ) -``` - -## Parameters -| Parameter | Description | -| -- | -- | -| `` | First string | -| `` | Second string | - -## Return Value -Returns an INT value. - -## Examples -```sql -SELECT levenshtein('kitten', 'sitting'); -- 3 -SELECT levenshtein('数据库', '数据'); -- 1 -``` - -## Notes -- Supports UTF-8 characters. -- NULL input returns NULL.