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


边栏推荐
- Redis分布式锁待续
- Classic examples of C language switch case statement conversion date format
- English语法_指示代词 - So
- Redis distributed lock to be continued
- Redis 主从、哨兵、集群架构有缺点比较
- Detailed overview of data standards -2022
- Classic example of C language - find the minimum number of banknotes
- GBase 8c 位串操作符(一)
- 泛型机制和增强for循环
- Pytest interface automated testing framework | common running parameters of pytest
猜你喜欢

mongodb的多数据源配置

English grammar_ Demonstrative pronoun - so

MariaDB database upgrade version

Reverse linked list drawing demonstration

高数_第2章多元函数微分学__偏导数的几何应用_空间曲线的切线与法平面

北峰通信亮相中国(厦门)应急展|智能化通信手段强势吸睛!

Understanding polymorphism and letting different "people" do the same thing will produce different results

Coloring old photos - deoldify get started quickly

First knowledge of C language functions

High number_ Chapter 2 differential calculus of multivariate functions__ Geometric application of partial derivatives_ Tangent and normal plane of space curve
随机推荐
GBase 8c 字符串操作符
Tencent cloud was affirmed by international professional streaming media evaluation: video coding performance is the best in all three scenarios
采坑websocket總結
Gbase 8C mode visibility query function (I)
Résumé du websocket minier
Network system experiment: solve the problem of Ping failure
inode、软链接、硬链接
The implementation in Oracle replaces the specified content of the specified column with the desired content
Redis persistence mechanism RDB, AOF
Educational Codeforces Round 132 (Rated for Div. 2)(A-D)
Redis分布式锁待续
Gbase 8C bit string operator (I)
Summary of pit websocket
GBase 8c 二进制字符串操作符
paypal订阅流程及api请求
GBase 8c 会话信息函数(六)
Flutter | specifies the type of page return value
如何提升数据质量
EFCore高级Saas系统下单DbContext如何支持不同数据库的迁移
GBase 8c 会话信息函数(五)