character manipulation functions (1)






Sr.No.Function & Description
1ASCII() Returns numeric value of left-most character
2BIN() Returns a string representation of the argument
3BIT_LENGTH() Returns length of argument in bits
4CHAR_LENGTH() Returns number of characters in argument
5CHAR() Returns the character for each integer passed
6CHARACTER_LENGTH() A synonym for CHAR_LENGTH()
7CONCAT_WS() Returns concatenate with separator
8CONCAT() Returns concatenated string
9CONV() Converts numbers between different number bases
10ELT() Returns string at index number
11EXPORT_SET() Returns a string such that for every bit set in the value bits, you get an on string and for every unset bit, you get an off string
12FIELD() Returns the index (position) of the first argument in the subsequent arguments
13FIND_IN_SET() Returns the index position of the first argument within the second argument
14FORMAT() Returns a number formatted to specified number of decimal places
15HEX() Returns a string representation of a hex value
16INSERT() Inserts a substring at the specified position up to the specified number of characters
17INSTR() Returns the index of the first occurrence of substring
18LCASE() Synonym for LOWER()
19LEFT() Returns the leftmost number of characters as specified
20LENGTH() Returns the length of a string in bytes
21LOAD_FILE() Loads the named file
22LOCATE() Returns the position of the first occurrence of substring
23LOWER() Returns the argument in lowercase
24LPAD() Returns the string argument, left-padded with the specified string
25LTRIM() Removes leading spaces
26MAKE_SET() Returns a set of comma-separated strings that have the corresponding bit in bits set
27MID() Returns a substring starting from the specified position
28OCT() Returns a string representation of the octal argument
29OCTET_LENGTH() A synonym for LENGTH()
30ORD() If the leftmost character of the argument is a multi-byte character, returns the code for that character
31POSITION() A synonym for LOCATE()
32QUOTE() Escapes the argument for use in an SQL statement
33REGEXP Pattern matching using regular expressions
34REPEAT() Repeats a string the specified number of times
35REPLACE() Replaces occurrences of a specified string
36REVERSE() Reverses the characters in a string
37RIGHT() Returns the specified rightmost number of characters
38RPAD() Appends string the specified number of times
39RTRIM() Removes trailing spaces
40SOUNDEX() Returns a soundex string
41SOUNDS LIKE Compares sounds
42SPACE() Returns a string of the specified number of spaces
43STRCMP() Compares two strings
44SUBSTRING_INDEX() Returns a substring from a string before the specified number of occurrences of the delimiter
45SUBSTRING(), SUBSTR() Returns the substring as specified
46TRIM() Removes leading and trailing spaces
47UCASE() Synonym for UPPER()
48UNHEX() Converts each pair of hexadecimal digits to a character
49UPPER() Converts to uppercase



klik disini untuk halaman kedua

Comments