当前位置:网站首页>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;


边栏推荐
- Gbase 8C session information function (III)
- Redis persistence mechanism RDB, AOF
- GBase 8c访问权限查询函数(六)
- Gbase 8C session information function (II)
- GBase 8c 会话信息函数(四)
- C language writing specification
- English语法_指示代词 -such / the same
- Gbase 8C system table information function (I)
- ES6 combines multiple class methods
- Communication module sorting (II) hc-05
猜你喜欢

如何提升数据质量

English语法_指示代词 -such / the same

Intelligent OCR identification of express documents helps the logistics industry to upgrade Digitalization

二叉搜索树的简易实现及剖析

English语法_指示代词 - So

Table custom table encapsulation

mongodb的多数据源配置

Don't let Fujin Yibo see this

Classic example of C language - find the minimum number of banknotes

Printf function - conversion description
随机推荐
数仓数据标准详解-2022
理解多态,让不同的“人”做同一件事情会产生不同的结果
Application of SCA on devsecops platform
[wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
《天幕红尘》笔记与思考(六)因缺而需
Classic example of C language - loan balance
Gbase 8C access authority query function (I)
docker 拉取redis镜像 并运行
CA digital certificate
Redis cluster hash sharding algorithm (slot location algorithm)
Easy gene | target gene DNA methylation sequencing (target BS)
Gbase 8C binary string operator
北峰通信亮相中国(厦门)应急展|智能化通信手段强势吸睛!
Distributed cap principle
XXL job realizes the code parsing of email sending warnings (line by line code interpretation)
Docker pulls the redis image and runs it
Gbase 8C system table information function (I)
GBase 8c 会话信息函数(六)
Gbase 8C session information function (I)
What is the function of the select... For UPDATE statement? Can you lock tables or rows?