Home  >  Article  >  Database  >  Recommended articles about Cast function

Recommended articles about Cast function

零下一度
零下一度Original
2017-06-14 09:34:001259browse

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

Recommended articles about Cast function

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

Recommended articles about Cast function

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn