Home > Database > Mysql Tutorial > How MySQL implements type conversion

How MySQL implements type conversion

WBOY
Release: 2023-04-17 15:01:05
forward
1167 people have browsed it

Type conversion

Command: CAST(expr AS type)

Function: Mainly used for display type conversion

Application scenario: display type Conversion

Example:

mysql> select cast(18700000000 as char);
+---------------------------+
| cast(18700000000 as char) |
+---------------------------+
| 18700000000  |
+---------------------------+
1 row in set (0.00 sec)
Copy after login

It should be noted that type does not support all basic data types

The above is the detailed content of How MySQL implements type conversion. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template