当前位置:网站首页>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 [, ...] ) ]
边栏推荐
- How to find summer technical internship in junior year? Are you looking for a large company or a small company for technical internship?
- 我的创作纪念日
- awk从入门到入土(0)awk概述
- 5. File operation
- Swift development learning
- QT qcombobox add qccheckbox (drop-down list box insert check box, including source code + comments)
- Detailed introduction to the usage of Nacos configuration center
- 微服务组件Sentinel (Hystrix)详细分析
- [Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor
- Modify table structure
猜你喜欢

What are MySQL locks and classifications
![[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数

Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux

Solution for processing overtime orders (Overtime unpaid)

Detailed analysis of micro service component sentinel (hystrix)

Create + register sub apps_ Define routes, global routes and sub routes

Ni visa fails after LabVIEW installs the third-party visa software

Tongda OA homepage portal workbench

Hard core observation 547 large neural network may be beginning to become aware?

UDP receive queue and multiple initialization test
随机推荐
詳細些介紹如何通過MQTT協議和華為雲物聯網進行通信
easyExcel
DQL basic operation
Depth (penetration) selector:: v-deep/deep/ and > > >
My creation anniversary
What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it
Explore the conversion between PX pixels and Pt pounds, mm and MM
Hard core observation 547 large neural network may be beginning to become aware?
stm32F407-------IIC通讯协议
Machine learning notes (constantly updating...)
awk从入门到入土(3)awk内置函数printf和print实现格式化打印
Summary of ES6 filter() array filtering methods
Unrecognized SSL message, plaintext connection?
Unrecognized SSL message, plaintext connection?
全链路数字化转型下,零售企业如何打开第二增长曲线
Method of removing webpage scroll bar and inner and outer margins
Job object of collaboration in kotlin
【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
Tongda OA homepage portal workbench
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数