当前位置:网站首页>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 [, ...] ) ]
边栏推荐
- CFdiv2-Fixed Point Guessing-(區間答案二分)
- Tongda OA V12 process center
- stm32F407-------IIC通讯协议
- Restcloud ETL cross database data aggregation operation
- What are the key points often asked in the redis interview
- Gbase 8C system table PG_ authid
- stm32F407-------DMA
- Monitoring and management of JVM
- Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
- Servlet中数据传到JSP页面使用el表达式${}无法显示问题
猜你喜欢
随机推荐
leetcode961. Find the elements repeated N times in the array with length 2n
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)
我的创作纪念日
GBase 8c系统表-pg_class
基于线程池的生产者消费者模型(含阻塞队列)
String replace space
[shutter] pull the navigation bar sideways (drawer component | pageview component)
苏世民:25条工作和生活原则
Detailed analysis of micro service component sentinel (hystrix)
5. File operation
Producer consumer model based on thread pool (including blocking queue)
GBase 8c系统表-pg_authid
Socket编程
What are MySQL locks and classifications
[Yu Yue education] China Ocean University job search OMG reference
Tongda OA V12 process center
【ROS进阶篇】第六讲 ROS中的录制与回放(rosbag)
Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
stm32F407-------ADC
Deep learning notes (constantly updating...)







