Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 16fdee0

Browse files
committed
docs: functions alphabetically sorted
Signed-off-by: Miguel Molina <[email protected]>
1 parent c26ce31 commit 16fdee0

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

README.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -59,55 +59,55 @@ We support and actively test against certain third-party clients to ensure compa
5959
<!-- BEGIN FUNCTIONS -->
6060
| Name | Description |
6161
|:-------------|:-------------------------------------------------------------------------------------------------------------------------------|
62-
|`COUNT(expr)`| Returns a count of the number of non-NULL values of expr in the rows retrieved by a SELECT statement.|
63-
|`MIN(expr)`|Returns the minimum value of expr in all rows.|
64-
|`MAX(expr)`|Returns the maximum value of expr in all rows.|
65-
|`AVG(expr)`|Returns the average value of expr in all rows.|
66-
|`SUM(expr)`|Returns the sum of expr in all rows.|
67-
|`IS_BINARY(blob)`|Returns whether a BLOB is a binary file or not.|
68-
|`SUBSTRING(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
69-
|`SUBSTR(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
70-
|`MID(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
71-
|`YEAR(date)`|Returns the year of the given date.|
72-
|`MONTH(date)`|Returns the month of the given date.|
73-
|`DAY(date)`|Returns the day of the given date.|
74-
|`WEEKDAY(date)`|Returns the weekday of the given date.|
75-
|`HOUR(date)`|Returns the hours of the given date.|
76-
|`MINUTE(date)`|Returns the minutes of the given date.|
77-
|`SECOND(date)`|Returns the seconds of the given date.|
78-
|DAYOFWEEK(date)`|Returns the day of the week of the given date.|
79-
|`DAYOFYEAR(date)`|Returns the day of the year of the given date.|
80-
|`NOW()`|Returns the current timestamp.|
8162
|`ARRAY_LENGTH(json)`|If the json representation is an array, this function returns its size.|
82-
|`SPLIT(str,sep)`|Receives a string and a separator and returns the parts of the string split by the separator as a JSON array of strings.|
63+
|`AVG(expr)`|Returns the average value of expr in all rows.|
64+
|`CEIL(number)`|Return the smallest integer value that is greater than or equal to `number`.|
65+
|`CEILING(number)`|Return the smallest integer value that is greater than or equal to `number`.|
66+
|`COALESCE(...)`|The function returns the first non-null value in a list.|
8367
|`CONCAT(...)`|Concatenate any group of fields into a single string.|
8468
|`CONCAT_WS(sep, ...)`|Concatenate any group of fields into a single string. The first argument is the separator for the rest of the arguments. The separator is added between the strings to be concatenated. The separator can be a string, as can the rest of the arguments. If the separator is NULL, the result is NULL.|
85-
|`COALESCE(...)`|The function returns the first non-null value in a list.|
86-
|`LOWER(str)`|Returns the string str with all characters in lower case.|
87-
|`UPPER(str)`|Returns the string str with all characters in upper case.|
88-
|`CEILING(number)`|Return the smallest integer value that is greater than or equal to `number`.|
89-
|`CEIL(number)`|Return the smallest integer value that is greater than or equal to `number`.|
90-
|`FLOOR(number)`|Return the largest integer value that is less than or equal to `number`.|
91-
|`ROUND(number, decimals)`|Round the `number` to `decimals` decimal places.|
9269
|`CONNECTION_ID()`|Return the current connection ID.|
93-
|`SOUNDEX(str)`|Returns the soundex of a string.|
70+
|`COUNT(expr)`| Returns a count of the number of non-NULL values of expr in the rows retrieved by a SELECT statement.|
71+
|`DAY(date)`|Returns the day of the given date.|
72+
|`DAYOFWEEK(date)`|Returns the day of the week of the given date.|
73+
|`DAYOFYEAR(date)`|Returns the day of the year of the given date.|
74+
|`FLOOR(number)`|Return the largest integer value that is less than or equal to `number`.|
75+
|`HOUR(date)`|Returns the hours of the given date.|
76+
|`IFNULL(expr1, expr2)`|If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.|
77+
|`IS_BINARY(blob)`|Returns whether a BLOB is a binary file or not.|
9478
|`JSON_EXTRACT(json_doc, path, ...)`|Extracts data from a json document using json paths.|
9579
|`LN(X)`|Return the natural logarithm of X.|
96-
|`LOG2(X)`|Returns the base-2 logarithm of X.|
97-
|`LOG10(X)`|Returns the base-10 logarithm of X.|
9880
|`LOG(X), LOG(B, X)`|If called with one parameter, this function returns the natural logarithm of X. If called with two parameters, this function returns the logarithm of X to the base B. If X is less than or equal to 0, or if B is less than or equal to 1, then NULL is returned.|
99-
|`RPAD(str, len, padstr)`|Returns the string str, right-padded with the string padstr to a length of len characters.|
81+
|`LOG10(X)`|Returns the base-10 logarithm of X.|
82+
|`LOG2(X)`|Returns the base-2 logarithm of X.|
83+
|`LOWER(str)`|Returns the string str with all characters in lower case.|
10084
|`LPAD(str, len, padstr)`|Return the string argument, left-padded with the specified string.|
101-
|`SQRT(X)`|Returns the square root of a nonnegative number X.|
102-
|`POW(X, Y)`|Returns the value of X raised to the power of Y.|
103-
|`TRIM(str)`|Returns the string str with all spaces removed.|
10485
|`LTRIM(str)`|Returns the string str with leading space characters removed.|
105-
|`RTRIM(str)`|Returns the string str with trailing space characters removed.|
106-
|`REVERSE(str)`|Returns the string str with the order of the characters reversed.|
86+
|`MAX(expr)`|Returns the maximum value of expr in all rows.|
87+
|`MID(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
88+
|`MIN(expr)`|Returns the minimum value of expr in all rows.|
89+
|`MINUTE(date)`|Returns the minutes of the given date.|
90+
|`MONTH(date)`|Returns the month of the given date.|
91+
|`NOW()`|Returns the current timestamp.|
92+
|`NULLIF(expr1, expr2)`|Returns NULL if expr1 = expr2 is true, otherwise returns expr1.|
93+
|`POW(X, Y)`|Returns the value of X raised to the power of Y.|
10794
|`REPEAT(str, count)`|Returns a string consisting of the string str repeated count times.|
10895
|`REPLACE(str,from_str,to_str)`|Returns the string str with all occurrences of the string from_str replaced by the string to_str.|
109-
|`IFNULL(expr1, expr2)`|If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.|
110-
|`NULLIF(expr1, expr2)`|Returns NULL if expr1 = expr2 is true, otherwise returns expr1.|
96+
|`REVERSE(str)`|Returns the string str with the order of the characters reversed.|
97+
|`ROUND(number, decimals)`|Round the `number` to `decimals` decimal places.|
98+
|`RPAD(str, len, padstr)`|Returns the string str, right-padded with the string padstr to a length of len characters.|
99+
|`RTRIM(str)`|Returns the string str with trailing space characters removed.|
100+
|`SECOND(date)`|Returns the seconds of the given date.|
101+
|`SOUNDEX(str)`|Returns the soundex of a string.|
102+
|`SPLIT(str,sep)`|Receives a string and a separator and returns the parts of the string split by the separator as a JSON array of strings.|
103+
|`SQRT(X)`|Returns the square root of a nonnegative number X.|
104+
|`SUBSTR(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
105+
|`SUBSTRING(str, pos, [len])`|Return a substring from the provided string starting at `pos` with a length of `len` characters. If no `len` is provided, all characters from `pos` until the end will be taken.|
106+
|`SUM(expr)`|Returns the sum of expr in all rows.|
107+
|`TRIM(str)`|Returns the string str with all spaces removed.|
108+
|`UPPER(str)`|Returns the string str with all characters in upper case.|
109+
|`WEEKDAY(date)`|Returns the weekday of the given date.|
110+
|`YEAR(date)`|Returns the year of the given date.|
111111
<!-- END FUNCTIONS -->
112112

113113
## Configuration

0 commit comments

Comments
 (0)