Function |
Description |
ABS (X) |
The function returns the absolute value of the numeric parameter x, if x is NULL, returns NULL if X is a string that cannot be converted to a numeric value, returns 0 if the x value exceeds the upper bound of the integer, and throws an "integer Overflow" exception. |
Changes () |
This function returns the number of data rows affected by the most recently executed insert, UPDATE, and DELETE statements. We can also get the same result by executing the C + + function sqlite3_changes (). |
COALESCE (x, y,...) |
Returns the first non-null parameter in a function parameter, or null if the argument is null. The function has at least 2 parameters. |
Ifnull (x, y) |
The function is equivalent to the COALESCE () function of two arguments, which returns the first non-null function argument, or null if two are null. |
Length (X) |
If the argument x is a string, the number of characters is returned, and if it is a numeric value, the length of the string representation of the parameter is returned, or null if NULL. |
Lower (X) |
Returns the lowercase form of the function parameter x, which, by default, can only be applied to ASCII characters. |
LTrim (X[,y]) |
If there is no optional parameter Y, the function removes all whitespace characters to the left of parameter x. If you have parameter Y, remove any characters that appear in Y on the left side of X. Finally, the removed string is returned. |
Max (x, y,...) |
Returns the maximum value in a function parameter, or null if any one of the arguments is null. |
Min (x, y,...) |
Returns the minimum value in the function parameter, or null if any one of the arguments is null. |
Nullif (x, y) |
Returns null if the function parameter is the same, otherwise the first argument is returned. |
Random () |
Returns the pseudo-random number of an integral type. |
Replace (x, Y, z) |
Replaces all substring y in function parameter x of the string type with string Z, and finally returns the replaced string, where the source string x remains unchanged. |
Round (X[,y]) |
Returns the value of the numeric parameter x rounded to the Y-scale, and if the parameter y does not exist, the default parameter value is 0. |
RTrim (X[,y]) |
If there is no optional parameter Y, the function removes all whitespace characters to the right of parameter x. If there is a parameter Y, remove any characters that appear in Y on the right side of X. Finally, the removed string is returned. |
SUBSTR (X,y[,z]) |
Returns a substring of the function parameter x, starting with the Y-bit (the first character in X at position 1) intercepts the z-length character, and if the z-parameter is omitted, all characters following the Y-character are taken. If the value of Z is negative, the ABS (Z) character is truncated to the left, starting at the Y-bit. If the Y value is negative, start at the end of the X string, starting at the position of ABS (Y). |
Total_changes () |
This function returns the total number of rows affected by the INSERT, update, and DELETE statements since the connection was opened. We can also get the same result through the C + + interface function sqlite3_total_changes (). |
Trim (X[,y]) |
If there is no optional parameter Y, the function removes all whitespace characters on both sides of the parameter x. If you have parameter Y, remove any characters that appear in Y on either side of X. Finally, the removed string is returned. |
Upper (X) |
Returns the uppercase form of the function parameter x, which, by default, can only be applied to ASCII characters. |
typeof (X) |
Returns a string representation of the function parameter data type, such as "Integer, text, real, null", and so on. |