Add English version Doris website (#1729)
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
It35; ASCII
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# ASCII
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT AXES (WARCHAR STR)'
|
||||
|
||||
|
||||
Returns the ASCII code corresponding to the first character of the string
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql > select ascii ('1');
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
'35; concat
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# concat
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR concat (VARCHAR,...)'
|
||||
|
||||
|
||||
Connect multiple strings and return NULL if any of the parameters is NULL
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select concat("a", "b");
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Concat w
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# Concat_ws
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR concat ws (VARCHAR sep., VARCHAR str,...)'
|
||||
|
||||
@ -9,7 +9,7 @@ Using the first parameter SEP as a connector, the second parameter and all subse
|
||||
If the separator is NULL, return NULL.
|
||||
` The concat_ws` function does not skip empty strings, but NULL values.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select concat_ws("or", "d", "is");
|
||||
@ -34,4 +34,4 @@ Concat ws ("or", "d", NULL,"is").
|
||||
+---------------------------------+
|
||||
```
|
||||
##keyword
|
||||
CONCAT WS,CONCAT,WS
|
||||
CONCAT_WS,CONCAT,WS
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
IV35; Find@U set
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# find_in_set
|
||||
## description
|
||||
### Syntax
|
||||
|
||||
`INT find_in_set(VARCHAR str, VARCHAR strlist)`
|
||||
|
||||
"NOT found in set (VARCHAR str., VARCHAR strlist)"
|
||||
|
||||
|
||||
Return to the location where the str first appears in strlist (counting from 1). Strlist is a comma-separated string. If not, return 0. Any parameter is NULL, returning NULL.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql > select find in u set ("b", "a,b,c");
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
Get two copies
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# get_json_double
|
||||
## description
|
||||
### Syntax
|
||||
|
||||
"DOUBLE get" is a double (VARCHAR is on the street, VARCHAR is on the path)
|
||||
`DOUBLE get_json_double(VARCHAR json_str, VARCHAR json_path)
|
||||
|
||||
|
||||
Parse and get the floating-point content of the specified path in the JSON string.
|
||||
@ -11,7 +11,7 @@ Use [] to denote array subscripts, starting at 0.
|
||||
The content of path cannot contain ",[and].
|
||||
If the json_string format is incorrect, or the json_path format is incorrect, or matches cannot be found, NULL is returned.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
1. Get the value of key as "k1"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# get_json_int
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'I don't get you int (VARCHAR is on, VARCHAR is on the path)
|
||||
|
||||
@ -11,7 +11,7 @@ Use [] to denote array subscripts, starting at 0.
|
||||
The content of path cannot contain ",[and].
|
||||
If the json_string format is incorrect, or the json_path format is incorrect, or matches cannot be found, NULL is returned.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
1. Get the value of key as "k1"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
''35; get me a string
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# get_json_string
|
||||
## description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR get'u string (VARCHAR json str, VARCHAR json path)
|
||||
|
||||
@ -11,7 +11,7 @@ Use [] to denote array subscripts, starting at 0.
|
||||
The content of path cannot contain ",[and].
|
||||
If the json_string format is incorrect, or the json_path format is incorrect, or matches cannot be found, NULL is returned.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
1. Get the value of key as "k1"
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
Groups \\\35
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# group_concat
|
||||
## description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR group 'concat (VARCHAR str [, VARCHAR sep])
|
||||
`VARCHAR group_concat(VARCHAR str[, VARCHAR sep])`
|
||||
|
||||
|
||||
This function is an aggregation function similar to sum (), and group_concat links multiple rows of results in the result set to a string. The second parameter, sep, is a connection symbol between strings, which can be omitted. This function usually needs to be used with group by statements.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select value from test;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=============
|
||||
字符串函数
|
||||
=============
|
||||
=======================
|
||||
String Functions
|
||||
=======================
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
~35instr
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# instr
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT INSR (WARCHAR STR, WARCHAR substrate)'
|
||||
|
||||
|
||||
Returns the location where substr first appeared in str (counting from 1). If substr does not appear in str, return 0.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select instr("abc", "b");
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
'35; lcase
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# lcase
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT lcase (VARCHAR str)'
|
||||
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# left
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR left (VARCHAR str)'
|
||||
|
||||
|
||||
It returns the left part of a string of specified length
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select left("Hello doris",5);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# length
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT length (VARCHAR str)'
|
||||
|
||||
|
||||
Returns the length of the string and the number of characters returned for multi-byte characters. For example, five two-byte width words return a length of 10.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select length("abc");
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
'35; locate
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# locate
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT LOCATION (WARCHAR substrate, WARCHAR str [, INT pos]]'
|
||||
|
||||
|
||||
Returns where substr appears in str (counting from 1). If the third parameter POS is specified, the position where substr appears is found from the string where STR starts with POS subscript. If not found, return 0
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> SELECT LOCATE('bar', 'foobarbar');
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# lower
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'INT lower (WARCHAR str)'
|
||||
|
||||
|
||||
Convert all strings in parameters to lowercase
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> SELECT lower("AbC123");
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
{35; lpad
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# lpad
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR lpad (VARCHAR str., INT len, VARCHAR pad)'
|
||||
|
||||
|
||||
Returns a string of length len in str, starting with the initials. If len is longer than str, pad characters are added to STR until the length of the string reaches len. If len is less than str's length, the function is equivalent to truncating STR strings and returning only strings of len's length.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql > SELECT lpad ("hi", 5, "xy");
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
'35; ltrim
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# ltrim
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR ltrim (VARCHAR str)'
|
||||
|
||||
|
||||
Remove the space that appears continuously from the beginning of the parameter str
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql > SELECT ltrim (ab d');
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# money_format
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
VARCHAR money format (Number)
|
||||
|
||||
|
||||
The number is output in currency format, the integer part is separated by commas every three bits, and the decimal part is reserved for two bits.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select money_format(17014116);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# regexp_extract
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR regexp 'extract (VARCHAR str, VARCHAR pattern, int pos)
|
||||
|
||||
|
||||
The string STR is matched regularly and the POS matching part which conforms to pattern is extracted. Patterns need to match exactly some part of the STR to return to the matching part of the pattern. If there is no match, return an empty string.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> SELECT regexp_extract('AbCdE', '([[:lower:]]+)C([[:lower:]]+)', 1);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
Replace regexp
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# regexp_replace
|
||||
## description
|
||||
### Syntax
|
||||
|
||||
VARCHAR regexp replace (VARCHAR str, VARCHAR pattern, VARCHAR repl)
|
||||
`VARCHAR regexp_replace(VARCHAR str, VARCHAR pattern, VARCHAR repl)
|
||||
|
||||
|
||||
Regular matching of STR strings, replacing the part hitting pattern with repl
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> SELECT regexp_replace('a b c', " ", "-");
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# repeat
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR repeat (VARCHAR str, INT count)
|
||||
|
||||
|
||||
Repeat the str of the string count times, return empty string when count is less than 1, return NULL when str, count is any NULL
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> SELECT repeat("a", 3);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# right
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'WARCHAR RIGHT (WARCHAR STR)'
|
||||
'VARCHAR RIGHT (VARCHAR STR)'
|
||||
|
||||
|
||||
It returns the right part of a string of specified length
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select right("Hello doris",5);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# split_part
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR split party (VARCHAR content, VARCHAR delimiter, INT field)'
|
||||
|
||||
|
||||
Returns the specified partition (counting from the beginning) by splitting the string according to the partitioner.
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select split_part("hello world", " ", 1);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# strleft
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'WARCHAR STRAIGHT (WARCHAR STR)'
|
||||
'VARCHAR STRAIGHT (VARCHAR STR)'
|
||||
|
||||
|
||||
It returns the left part of a string of specified length
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select strleft("Hello doris",5);
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
35; strright
|
||||
Description
|
||||
'35;'35;' 35; Syntax
|
||||
# strright
|
||||
## Description
|
||||
### Syntax
|
||||
|
||||
'VARCHAR strright (VARCHAR str)'
|
||||
|
||||
|
||||
It returns the right part of a string of specified length
|
||||
|
||||
'35;'35; example
|
||||
## example
|
||||
|
||||
```
|
||||
mysql> select strright("Hello doris",5);
|
||||
|
||||
Reference in New Issue
Block a user