mysql中cast
时间: 2023-10-18 11:00:12 浏览: 77
MySQL数据库中CAST与CONVERT函数实现类型转换的讲解
在MySQL中,CAST是一种用于将某个表达式转换为指定数据类型的函数。通过使用CAST函数,我们可以将一个值转换为不同的数据类型,以便在查询中进行比较或计算。CAST函数的语法为CAST(expression AS data_type),其中expression是要转换的表达式,data_type是要转换为的数据类型。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MySQL 中的数据类型介绍](https://download.csdn.net/download/qq_37647812/88226842)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [MySql中的CAST](https://blog.csdn.net/I_lost/article/details/103718055)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文