当前位置:网站首页>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;
边栏推荐
- Office macro virus bounce shell experiment
- mysql的tinyint字段类型判断的疑惑
- GBASE 8s的隔离级别介绍
- Is opencv open source?
- CTF_ Web: how to recognize and evaluate a regular expression
- 2020.3.3 notes async/await and promise and Then processes and threads
- navicat可不可以直接操作安卓数据库SQLite
- LeetCode 剑指Offer II 091 粉刷房子[动态规划] HERODING的LeetCode之路
- 微信小程序父子组件之间传值
- Basic use of OBS browser+ browser
猜你喜欢

CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep

Laravel document sorting 4. Controller

Musk released humanoid robot. Why is AI significant to musk?

1、项目第二阶段——用户注册和登陆

OBS Browser+浏览器的基本使用

Is opencv open source?

Value transfer between parent and child components of wechat applet

无法安装redis接口

GBASE 8s 索引B+树

UCLA | 用于黑盒优化的生成式预训练
随机推荐
GBASE 8s存储过程语法结构
GbASE 8s中的Blob 页(Blobspace page)
GBASE 8s的触发器
GBASE 8s的多线程结构
第二十五周记录
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
Shutter fittedbox component
GBase 8s 锁的分类
UCLA | generative pre training for black box optimization
NFT insider 63: the sandbox reached a cooperation with Time magazine, and YGG established Spain's subdao
Read lsd-slam: large scale direct monolithic slam
地方/园区产业规划之 “ 如何进行产业定位 ”
Laravel document sorting 8. Middleware
Laravel document sorting 7. View
单元测试覆盖率
彻底理解数据库事务
地方/園區產業規劃之 “ 如何進行產業定比特 ”
Laravel document sorting 6. Response
GBASE 8s的数据视图
Coinlist queuing tutorial to improve the winning rate