当前位置:网站首页>SQL CASE 多条件用法
SQL CASE 多条件用法
2022-07-24 01:00:00 【Ark方舟】
案例一:
CASE sex
WHEN '1' THEN '男'
WHEN '2' THEN '女'
ELSE '其他' END案例二:
SELECT
b.document_number,
b.document_type,
b.document_type_content_id,
CASE document_type
WHEN '01' THEN '一般经费'
WHEN '02' THEN '会议经费'
WHEN '03' THEN '培训经费'
WHEN '02' THEN '公务接待'
ELSE '其他' END AS matter,
b.funding_apply_id,
b.budget_year,
b.department_id,
FROM `ys_funding_apply` b边栏推荐
- 暑假第四周总结
- 如何在自动化测试中使用MitmProxy获取数据返回?
- AVX instruction set accelerated matrix multiplication
- Case error of MySQL branch statement
- How to speed up matrix multiplication -- optimizing GEMM (CPU single thread)
- Establishment of static route
- Tutorial on the principle and application of database system (046) -- MySQL query (VIII): group by
- js的相关知识
- Summary of the fourth week of summer vacation
- MySQL common commands
猜你喜欢

Design details related to sap e-commerce cloud Spartacus UI store

Use of crawler request library 2

Project scenario: NVIDIA SMI unable to datemine the device handle for GPU 0000:01:00.0: unknown error

LVS load balancing scheduling principle and configuration method

Idea hot deployment (hot load)

Programmeur de cheval noir - test d'interface - test d'interface d'apprentissage de quatre jours - jour 4 - Postman lit des fichiers de données externes, lit des données de fichiers de données, IHRM P

Centernet target detection model and centerfusion fusion target detection model

T-seda code

NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘*****‘

Redis common commands
随机推荐
PostgreSQL snapshot optimization globalvis new system analysis (greatly enhanced performance)
First knowledge of C language functions
Tutorial on the principle and application of database system (048) -- MySQL query (x): self connection query
Small farmers also have big goals in the test, and the latest big bat interview summary (constantly updating...)
MySQL common commands
Comparison of image preprocessing between pytorch opencv pil
MySQL exercise: all employees reporting to the CEO
freemarker
1000 okaleido tiger launched binance NFT, triggering a rush to buy
This is a big problem
落枕如何快速缓解
postman测试接口在URL配置正确的情况下出现404或者500错误
The problem that all values are the same occurs after golang for range traverses and assigns values to the dictionary
【复盘】关于我在错误的时间选错了技术这件事
Use of crawler request library 2
SAP 电商云 Spartacus UI Store 相关的设计明细
The high-quality digital collection of guochuang's "children's song line" is on sale, and you are invited to create a young martial arts Jianghu dream
Tutorial on principles and applications of database system (051) -- MySQL query (XIII): using queries in DML statements
AVX instruction set accelerated matrix multiplication
SAP 实施项目中涉及到编程方式操作 Excel 的几种场景介绍