当前位置:网站首页>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;
边栏推荐
- Finereport displays and hides column data according to conditions
- Lecture record: data processing methods and applications of various spatial geodetic techniques
- CTF_ Web: Advanced questions of attack and defense world expert zone WP (15-18)
- Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
- CTF_ Web:8-bit controllable character getshell
- Can Navicat directly operate the Android database SQLite
- Read lsd-slam: large scale direct monolithic slam
- How to screen out words related to products and eliminate invalid words accurately
- 如何绘制产业招商地图
- Where is the red area of OpenCV?
猜你喜欢

什么是存储引擎以及MySQL常见的三种数据库存储引擎

关于TCP连接三次握手的详细总结

CTF_ Web:8-bit controllable character getshell

CTF_ Web:php weak type bypass and MD5 collision

CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)

Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)

Watch out for the stolen face! So many risks of face recognition used every day?

1280_ C language to find the average value of two unsigned integer

unity Quad剔除背面并剔除透明部分的shader

论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》
随机推荐
2020.3.3 notes async/await and promise and Then processes and threads
无法安装redis接口
What is data persistence?
CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)
彻底理解数据库事务
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
General steps for QT compiling database plug-ins
Shutter fittedbox component
"Renaissance" in the digital age? The bottom digital collection makes people happy and sad
Communication problems in parent and child components of uniapp
Lecture record: data processing methods and applications of various spatial geodetic techniques
CMD operation MySQL in Windows
Introduction to intstream API
Should I use on or where for the left join
Laravel document sorting 8. Middleware
PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
Laravel document sorting 1. Installation and Preliminary Configuration
关于TCP连接四次握手(或者叫四次挥手)的详细总结
How many images can opencv open?
UCLA | 用于黑盒优化的生成式预训练