mysql decode 函数
时间: 2023-10-12 17:04:08 浏览: 253
SQL中 decode()函数简介
MySQL中的DECODE函数是用于实现日期和字符之间的相互转换的方法。DECODE函数的使用方法如下:如果expr1不为NULL,则DECODE函数的返回值为expr1;否则返回值为expr2。DECODE函数的返回值可以是数字或字符串,具体取决于上下文。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mysql 函数大全](https://download.csdn.net/download/zyb3514/7455205)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [MYSQL-ORCALE decode函数在MYSQL中的实现](https://blog.csdn.net/m0_71272694/article/details/126673227)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文