当前位置:网站首页>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 [, ...] ) ]
边栏推荐
- Coroutinecontext in kotlin
- awk从入门到入土(1)awk初次会面
- How do it students find short-term internships? Which is better, short-term internship or long-term internship?
- Servlet中数据传到JSP页面使用el表达式${}无法显示问题
- Groovy, "try with resources" construction alternative
- Swift开发学习
- 4. Classes and objects
- Kotlin middle process understanding and Practice (I)
- Redis:Redis的简单使用
- [fluent] fluent debugging (debug debugging window | viewing mobile phone log information | setting normal breakpoints | setting expression breakpoints)
猜你喜欢

线程安全的单例模式

机器学习笔记(持续更新中。。。)

Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现

Use go language to realize try{}catch{}finally

Redis:Redis的简单使用

The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}

4. 类和对象

Recommendation letter of "listing situation" -- courage is the most valuable

4. Classes and objects
![[Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor
随机推荐
Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt
[shutter] hero animation (hero realizes radial animation | hero component createrecttween setting)
DML Foundation
全链路数字化转型下,零售企业如何打开第二增长曲线
easyExcel
How to deal with cache hot key in redis
CFdiv2-Fixed Point Guessing-(区间答案二分)
[Yu Yue education] reference materials of love psychology of China University of mining and technology
我的创作纪念日
502 (bad gateway) causes and Solutions
Swift开发学习
awk从入门到入土(2)认识awk内置变量和变量的使用
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
詳細些介紹如何通過MQTT協議和華為雲物聯網進行通信
8 free, HD, copyright free video material download websites are recommended
QT qcombobox add qccheckbox (drop-down list box insert check box, including source code + comments)
Deep learning notes (constantly updating...)
Detailed introduction to the usage of Nacos configuration center
[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)
详细些介绍如何通过MQTT协议和华为云物联网进行通信