The BINARYBINARY operator throws the following string into a binary string. This is a simple way to force column comparisons to be done byte-by-byte rather than character-by-character. This makes the comparison case-sensitive, even if the column is not defined as a BINARY or BLOB. BINARY also produces trailing whitespace, making it more conspicuous. mysql> SELECT 'a' = 'A'; -> 1 mysql> SELECT BINARY 'a' = 'A'; -> 0 mysql> SELECT 'a' = 'a '; -> 1 mysql> SEL
1. MySQL Basic Tutorial 11 - Function Cast Function and Operator
Introduction: The BINARYBINARY operator throws the following string into a binary string. This is a simple way to force column comparisons to be done byte-by-byte rather than character-by-character. This makes the comparison case-sensitive, even if the column is not defined as BINAR...
2. Cast functions and operators of mysql functions
Introduction: The BINARY operator throws the following string into a binary string. This is a simple way to force column comparisons to be done byte-by-byte rather than character-by-character. This makes the comparison case-sensitive, even if the column is not defined as a BINARY or BLOB. BINARY also produces trailing whitespace, making it more conspicuous.
3. DB2 takes the decimal part of a floating point number
Introduction: All DB2 versions take all, use floor function, or cast function takes the integer part, and then subtracts the integer part from the original number:
The above is the detailed content of Recommended articles about Cast function. For more information, please follow other related articles on the PHP Chinese website!