当前位置:网站首页>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 [, ...] ) ]
边栏推荐
- Distributed transaction solution
- awk从入门到入土(0)awk概述
- Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???
- cvpr2022去雨去雾
- es6 filter() 数组过滤方法总结
- Gbase 8C system table PG_ authid
- Awk from introduction to earth (0) overview of awk
- require. context
- GBase 8c系统表-pg_constraint
- [Yu Yue education] reference materials of love psychology of China University of mining and technology
猜你喜欢
easyPOI
udp接收队列以及多次初始化的测试
stm32F407-------DMA
使用Go语言实现try{}catch{}finally
RestCloud ETL 跨库数据聚合运算
通达OA v12流程中心
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
y54.第三章 Kubernetes从入门到精通 -- ingress(二七)
Deep learning notes (constantly updating...)
详细些介绍如何通过MQTT协议和华为云物联网进行通信
随机推荐
Flink CDC mongoDB 使用及Flink sql解析monggo中复杂嵌套JSON数据实现
使用Go语言实现try{}catch{}finally
去除网页滚动条方法以及内外边距
y54.第三章 Kubernetes从入门到精通 -- ingress(二七)
【 tutoriel】 Chrome ferme les cors et les messages de la politique inter - domaines et apporte des cookies à travers les domaines
Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
Recommendation letter of "listing situation" -- courage is the most valuable
GBase 8c系统表-pg_amproc
詳細些介紹如何通過MQTT協議和華為雲物聯網進行通信
Servlet中数据传到JSP页面使用el表达式${}无法显示问题
oauth2.0鉴权,登录访问 “/oauth/token”,请求头Authorization(basicToken)如何取值???
MySQL learning 03
cvpr2022去雨去雾
Detailed analysis of micro service component sentinel (hystrix)
Producer consumer model based on thread pool (including blocking queue)
elastic stack
stm32F407-------ADC
详细些介绍如何通过MQTT协议和华为云物联网进行通信
[tutorial] chrome turns off cross domain policies CORS and samesite, and brings cookies across domains
String replace space