当前位置:网站首页>GBase 8c 函数/存储过程定义
GBase 8c 函数/存储过程定义
2022-07-03 02:18:00 【大壮十二】
GBase 8c函数或存储过程是存储在数据库服务器上并可以使用SQL界面调用的一组SQL和过程语句(声明,分配,循环,控制流程等)。 它有助于您执行通常在数据库中的单个函数中进行多次查询和往返操作的操作。
可以在多种语言(如SQL,PL/pgSQL,C,Python等)中创建GBase 8c函数/存储过程。
语法:
CREATE [ OR REPLACE ] FUNCTION
name ( [ [ argmode ] [ argname ] argtype [ { DEFAULT | = } default_expr ] [, ...] ] )
[ RETURNS rettype
| RETURNS TABLE ( column_name column_type [, ...] ) ]
{ LANGUAGE lang_name
| TRANSFORM { FOR TYPE type_name } [, ... ]
| WINDOW
| IMMUTABLE | STABLE | VOLATILE | [ NOT ] LEAKPROOF
| CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT
| [ EXTERNAL ] SECURITY INVOKER | [ EXTERNAL ] SECURITY DEFINER
| PARALLEL { UNSAFE | RESTRICTED | SAFE }
| COST execution_cost
| ROWS result_rows
| SET configuration_parameter { TO value | = value | FROM CURRENT }
| AS 'definition'
| AS 'obj_file', 'link_symbol'
} ...
[ WITH ( attribute [, ...] ) ]
边栏推荐
- 502 (bad gateway) causes and Solutions
- 线程安全的单例模式
- Explore the conversion between PX pixels and Pt pounds, mm and MM
- 4. 类和对象
- 微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
- Tongda OA homepage portal workbench
- Summary of ES6 filter() array filtering methods
- Return the only different value (de duplication)
- stm32F407-------DMA
- Awk from getting started to getting into the ground (3) the built-in functions printf and print of awk realize formatted printing
猜你喜欢
How to deal with cache hot key in redis
Tongda OA homepage portal workbench
通达OA v12流程中心
Tongda OA V12 process center
Hard core observation 547 large neural network may be beginning to become aware?
UDP receive queue and multiple initialization test
Anna: Beibei, can you draw?
easyPOI
[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
Stm32f407 ------- IIC communication protocol
随机推荐
Stm32f407 ------- IIC communication protocol
Machine learning process and method
How do browsers render pages?
Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
创建+注册 子应用_定义路由,全局路由与子路由
DQL basic operation
Deep learning notes (constantly updating...)
线程安全的单例模式
内存池(内核角度理解new开辟空间的过程)
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
require.context
stm32F407-------DMA
easyExcel
easyPOI
Modify table structure
Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
iptables 4层转发
leetcode961. Find the elements repeated N times in the array with length 2n