当前位置:网站首页>PostgreSQL statement
PostgreSQL statement
2022-06-11 03:36:00 【Full of grain】
IF Conditional statements
- IF ... THEN...END IF;
- IF ... THEN ... ELSE...END IF;
- IF ... THEN ... ELSEIF ... THEN ... END IF;
- IF ... THEN ... ELSEIF ... THEN ... ELSE...END IF;
LOOP Loop statement
1、 Use IF Exit loop
Loop
Logic block
IF… THEN
EXIT ;
END IF;
END LOOP;
2、 Use WHEN Exit loop
LOOP
EXIT WHEN Conditions ;
CONTINUE WHEN The subsequent logic does not execute the condition of directly entering the next iteration ;
Logic block
END LOOP;3、 Use CONTINUE The subsequent logic will not be executed this time and will directly enter the next iteration
LOOP
CONTINUE WHEN Conditions ;
Logic block
END LOOP;
WHILE loop
WHILE Conditions LOOP
Logic block
END LOOP;
FOR loop
FOR A loop that iterates over a range of integer values
1、 Iterating from small to large
FOR item_int IN 1..10 LOOP
Logic block
END LOOP;2、 Iterating from large to small
FOR item_int IN REVERSE 10..1 LOOP
Logic block
END LOOP;Be careful : If the lower bound is greater than the upper bound ( Or in REVERSE Less than ), Then the loop body will not be executed at all . And will not throw any errors .
边栏推荐
- 【ELT.ZIP】OpenHarmony啃论文俱乐部——快速随机访问字符串压缩
- CheckBox美化按钮选中样式
- js顶部图标菜单点击切换背景色js特效
- Right click PowerShell here function add
- canvas绘图——如何把图形放置画布中心
- Technology Pro strength evaluation: comprehensive PK of high-end massage chair market, who is worthy of the machine king?
- postgresql copy语句
- canvas旋转绘图h5动画js特效
- Rhel7 switch character encoding to GBK
- ARM开发板方案与厂商分析
猜你喜欢

What has TCL done right to break through the technological strength of Chinese brand innovation?

Promise使用

Artalk | how to build a domestic hyperfusion evolutionary base with minimum investment?

Checkbox beautify button selected style

Canvas rotation drawing H5 animation JS effect
![[safety science popularization] mining technology starts from the love story of a man of science and Engineering](/img/01/73376c133c33527e479685f8680238.jpg)
[safety science popularization] mining technology starts from the love story of a man of science and Engineering

单片机通信数据延迟问题排查

Azure Kubernates Service 更新|提升开发体验和效率

B_ QuRT_ User_ Guide(18)

If not, use the code generator to generate a set of addition, deletion, modification and query (2)
随机推荐
Database design specification
If no separation ----- > > login module nanny level source code analysis (0)
Shangpinhui mall_ Background homepage of
OpenGL Chapter 10 illuminant
SSL交互过程
SQL | 游戏行业部分指标
实现发布订阅模式-----手撕js系列
Windows10 installing keras
Canvas interactive star animation background JS special effect
canvas旋转绘图h5动画js特效
【ELT.ZIP】OpenHarmony啃论文俱乐部——数据高通量无损压缩方案
[cloud native] what is micro service? How to build it? Teach you how to build the first micro service (framework)
svg实现纸飞机自由的飞翔动画
PostgreSQL source code learning (18) -- mvcc ③ - creating (obtaining) snapshots
OpenGL Chapter 7 basic lighting
Solution to the problem of gd32f4 serial port DMA reception
js顶部图标菜单点击切换背景色js特效
JS the most commonly used sorting - hand tearing JS series
js点击太阳月亮切换白天黑夜js特效
Iqoo 8 measured hands-on experience: return of the king, never high profile