当前位置:网站首页>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 [, ...] ) ]
边栏推荐
- Kotlin middle process understanding and Practice (I)
- The sandbox explains its vision for the meta universe platform
- SPI mechanism
- Exception handling in kotlin process
- [shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
- GBase 8c系统表-pg_class
- [Yu Yue education] reference materials of chemical experiment safety knowledge of University of science and technology of China
- The use of Flink CDC mongodb and the implementation of Flink SQL parsing complex nested JSON data in monggo
- The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}
- Create + register sub apps_ Define routes, global routes and sub routes
猜你喜欢
Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
通达OA v12流程中心
[shutter] pull the navigation bar sideways (drawer component | pageview component)
udp接收队列以及多次初始化的测试
easyExcel
Distributed transaction solution
[advanced ROS] Lesson 6 recording and playback in ROS (rosbag)
详细些介绍如何通过MQTT协议和华为云物联网进行通信
[Flutter] dart: class;abstract class;factory;类、抽象类、工厂构造函数
What are MySQL locks and classifications
随机推荐
5. File operation
创建+注册 子应用_定义路由,全局路由与子路由
awk从入门到入土(1)awk初次会面
Producer consumer model based on thread pool (including blocking queue)
GBase 8c系统表-pg_auth_members
javeScript 0.1 + 0.2 == 0.3的问题
Coroutinecontext in kotlin
es6 filter() 数组过滤方法总结
微服务组件Sentinel (Hystrix)详细分析
COM and cn
Use go language to realize try{}catch{}finally
Wechat applet development tool post net:: err_ PROXY_ CONNECTION_ Failed agent problem
微信小程序開發工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理問題
[Yu Yue education] China Ocean University job search OMG reference
Leetcode 183 Customers who never order (2022.07.02)
面试八股文整理版
Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt
【CodeForces】CF1338A - Powered Addition【二进制】
How to deal with cache hot key in redis
stm32F407-------IIC通讯协议