当前位置:网站首页>Gbase 8C function / stored procedure definition
Gbase 8C function / stored procedure definition
2022-07-03 02:22:00 【Dazhuang twelve】
GBase 8c Functions or stored procedures are stored on the database server and can be used SQL A set of interface calls SQL And procedure statements ( Statement , Distribute , loop , Control process, etc ). It helps you perform operations that typically perform multiple queries and round trips in a single function in the database .
Can be in multiple languages ( Such as SQL,PL/pgSQL,C,Python etc. ) Created in GBase 8c function / stored procedure .
grammar :
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 [, ...] ) ]
边栏推荐
- 机器学习流程与方法
- GBase 8c系统表-pg_collation
- Wechat applet Development Tool Post net:: Err Proxy Connexion Problèmes d'agent défectueux
- stm32F407-------DMA
- Detailed introduction to the usage of Nacos configuration center
- elastic stack
- Summary of ES6 filter() array filtering methods
- Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现
- Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
- 5. File operation
猜你喜欢

Servlet中数据传到JSP页面使用el表达式${}无法显示问题

MySQL learning 03

Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol

Restcloud ETL cross database data aggregation operation

详细些介绍如何通过MQTT协议和华为云物联网进行通信

Detailed analysis of micro service component sentinel (hystrix)

Tongda OA V12 process center

创建+注册 子应用_定义路由,全局路由与子路由

stm32F407-------DMA

Solution for processing overtime orders (Overtime unpaid)
随机推荐
GBase 8c触发器(二)
stm32F407-------ADC
Current situation and future of Web3 in various countries
5.文件操作
[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
GBase 8c系统表-pg_class
easyPOI
GBase 8c系统表pg_cast
Detailed analysis of micro service component sentinel (hystrix)
详细些介绍如何通过MQTT协议和华为云物联网进行通信
线程安全的单例模式
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
GBase 8c系统表-pg_attribute
Coroutinecontext in kotlin
Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现
Iptables layer 4 forwarding
[Yu Yue education] reference materials of chemical experiment safety knowledge of University of science and technology of China
4. Classes and objects
502 (bad gateway) causes and Solutions
Awk from entry to burial (1) awk first meeting