当前位置:网站首页>Linux server development, MySQL process control statement
Linux server development, MySQL process control statement
2022-07-07 07:50:00 【Tuen Mun pheasant calls me chicken】
Recommend a free open course of zero sound College , Personally, I think the teacher spoke well , Share with you :Linux,Nginx,ZeroMQ,MySQL,Redis,fastdfs,MongoDB,ZK, Streaming media ,CDN,P2P,K8S,Docker,TCP/IP, coroutines ,DPDK Etc , Learn now
1.IF sentence
IF condition(x=1) THEN
(SELECT 1;)
ELSEIF condition(x=2) THEN
(SELECT 2;)
ELSE
(SELECT 3;)
END IF;
2.CASE sentence
CASE valu(x)
WHEN value(1) TNEN SELECT 1;
WHEN value(2) TNEN SELECT 2;
ELSE …
END CASE;
3.WHILE sentence
lable:WHILE i<100 DO
SET s=s+i;
SET i=i+1;
IF i=50 THEN
– sign out while loop
LEAVE lable
END IF;
END WHILE;
4.LOOP sentence
loop_label:LOOP
SET s=s+1;
SET i=i+1;
IF i>100 THEN
– Introduction LOOP loop
LEAVE loop_label;
END IF;
END LOOP;
5.REPEAT sentence
REPEAT
SET s=s+i;
SET i=i+1;
UNTIL i>100
END REPEAT;
5.ITERATE sentence
IF(i mod 2) THEN
SET s=s+1;
ELSE
– Exit this cycle , Go on to the next cycle
ITERATE loop_bale;
END IF;
边栏推荐
- Mysql高低版本切换需要修改的配置5-8(此处以aicode为例)
- Tongda injection 0day
- Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
- 3D reconstruction - stereo correction
- Leanote private cloud note building
- Most elements
- Leetcode sword finger offer brush questions - day 20
- Iterable、Collection、List 的常见方法签名以及含义
- The configuration that needs to be modified when switching between high and low versions of MySQL 5-8 (take aicode as an example here)
- [GUET-CTF2019]虚假的压缩包
猜你喜欢
随机推荐
@component(““)
Numbers that appear only once
Technology cloud report: from robot to Cobot, human-computer integration is creating an era
[GUET-CTF2019]虚假的压缩包
JS plot flot application - simple curve
Is the test cycle compressed? Teach you 9 ways to deal with it
2022制冷与空调设备运行操作复训题库及答案
Pytest+allure+jenkins installation problem: pytest: error: unrecognized arguments: --alluredir
Button wizard script learning - about tmall grabbing red envelopes
A bit of knowledge - about Apple Certified MFI
Explore Cassandra's decentralized distributed architecture
Jenkins remote build project timeout problem
Codeforces Global Round 19
[2022 ciscn] replay of preliminary web topics
微信小程序中的路由跳转
Figure out the working principle of gpt3
海思芯片(hi3516dv300)uboot镜像生成过程详解
Tongda injection 0day
LeetCode 90:子集 II
mysql多列索引(组合索引)特点和使用场景