当前位置:网站首页>Gbase 8s stored procedure flow control
Gbase 8s stored procedure flow control
2022-06-25 04:32:00 【Eight delicacies tofu】
IF、ELSE Conditional statements
IF、ELSE The syntax format of conditional statements is :
IF < expression > THEN
{ Sentence block }
ELSEIF < expression > THEN
{ Sentence block }
ELSE
{ Sentence block }
END IF;
CASE structure
Some complex programs may have to change the value of a variable Multiple judgment , If you use IF、ELSE Structure makes the program , It's complicated , Increased code volume . You can use CASE structure To simplify the code .
CASE The syntax format of the function is as follows :
CASE < expression >
WHEN < It's worth > THEN
{ Sentence block }
WHEN < It's worth > THEN
{ Sentence block }
…
END CASE;
Loop structure
When the program needs Execute the same code repeatedly when , You can use SPL The loop structure provided implements such complex functions .WHILE Loop structure as follows :
WHILE < expression >
{ Sentence block }
END WHILE;
边栏推荐
- How much do you know about the use value of WMS warehouse management system
- openmmlab-环境配置
- Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'
- PHP code audit 1 - php Ini
- Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
- "Renaissance" in the digital age? The bottom digital collection makes people happy and sad
- Summary of various problems encountered by cocos2d-x
- Easyrecovery15 very easy to use computer data recovery software
- GBASE 8s存储过程流程控制
- CTF_ Web: file contains pseudo protocol with PHP
猜你喜欢
"Renaissance" in the digital age? The bottom digital collection makes people happy and sad
mongodb集群
English Grammar - pronunciation rules
UCLA | 用于黑盒优化的生成式预训练
Shutter fittedbox component
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
Unit test coverage
记录小知识点
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
navicat可不可以直接操作安卓数据库SQLite
随机推荐
CTF_ Web: file contains pseudo protocol with PHP
Summary of various problems encountered by cocos2d-x
A detailed summary of TCP connection triple handshake
LabVIEW开发气体调节器
2021.8.29 notes: register, bit operation, pointer, structure
2021.4.15 note the difference between let, const and VaR in ES6
How much do you know about the use value of WMS warehouse management system
【LeetCode】143. Rearrange linked list
论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)
Zoran community
CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
How to install opencv? Opencv download installation tutorial
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
MySQL order by
Retrofit 源码分析
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
CTF_ Web: Learn flask template injection (SSTI) from 0
什么是存储引擎以及MySQL常见的三种数据库存储引擎
关于TCP连接三次握手的详细总结