当前位置:网站首页>mysql 分支语句case报错
mysql 分支语句case报错
2022-07-24 00:33:00 【CSDN问答】
在用MySQL(版本是8.0以上的) case分支语句出现报错,只要是用case就会,简单的分支语句也是如此,大家帮忙看下,如下图
这是其中一个存储过程脚本
create procedure proc_test9(in score int)
begin
case
when score > 90 and score <= 100 then select 'a';
when score > 80 then select 'b';
when score > 70 then select 'c';
else select 'd';
end case;
end;


边栏推荐
- How to improve data quality
- 分布式之 CAP 原则
- Gbase 8C session information function (III)
- Detailed explanation of data warehouse standard -2022
- Redis分布式锁待续
- What is the function of the select... For UPDATE statement? Can you lock tables or rows?
- 【电赛训练】非接触物体尺寸形态测量 2020年电赛G题
- Gbase 8C access authority query function (I)
- English语法_指示代词 - So
- sed 深入理解与使用
猜你喜欢

Unity metaverse (I). Ready player me & blender customize your Avatar

Method of C language annotation

Blockbuster | certik: Web3.0 industry safety report release in the second quarter of 2022 (PDF download link attached)

Tencent cloud was affirmed by international professional streaming media evaluation: video coding performance is the best in all three scenarios

Mobile terminal H5 - a lifeline timeline

English语法_指示代词 - So

IIS deployment.Netcore

Redis cluster hash sharding algorithm (slot location algorithm)

XXL job realizes the code parsing of email sending warnings (line by line code interpretation)

EFCore高级Saas系统下单DbContext如何支持不同数据库的迁移
随机推荐
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
Pytest interface automated test framework | pytest generates simple test reports
Codeforces Round #807 (Div. 2)(A-D)
Reverse linked list drawing demonstration
[video game training] non contact object size and shape measurement 2020 video game G
通信模块整理(二)HC-05
Docker pulls the redis image and runs it
MariaDB database upgrade version
GBase 8c 访问权限查询函数(三)
Mobile terminal H5 - a lifeline timeline
GBase 8c 访问权限查询函数(五)
Redis cluster hash sharding algorithm (slot location algorithm)
Classic example of C language - convert the input two digits into English
Problem note - unable to open include file: "direct.h": no such file or directory
Notes and Thoughts on the red dust of the sky (VI) due to lack
Inode, soft link, hard link
C language macro definition
Robot dog back submachine gun shooting video fire, netizens shivering: stoooooooopppp!
PayPal subscription process and API request
Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization