当前位置:网站首页>Gbase 8C function / stored procedure parameters (I)
Gbase 8C function / stored procedure parameters (I)
2022-07-03 02:22:00 【Dazhuang twelve】
- name: The name of the function to be created ( Can be modified by patterns ), Value range : character string ;
- argmode: Mode of function parameters , Value range :IN、OUT、INOUT perhaps VARIADIC, Default is IN. Only OUT The parameters of the mode can be followed by VARIADIC(VARIADIC Parameters for declaring array types ), And OUT and INOUT Mode parameters cannot be used in RETURNS TABLE In the function definition of symbol ;
- argname: The name of the function parameter , Value range : character string ;
- argtype: The data type of the function parameter ;
- default_expr: Default expression for parameter ;
- rettype: The data type of the value returned by the function , If there is OUT or IN OUT Parameters , It can be omitted RETURNS Clause , If not omitted RETURNS Clause must be consistent with the result type represented by the output parameter : If multiple output parameters , Then for RECORD Otherwise, the type is the same as that of a single output parameter .SETOF The modifier indicates that the function will return a set , Not a single item ;
- column_name: Field name ;
- column_type: Field type ;
- lang_name: The name of the language used to implement the function . It can be SQL,C,internal, Or user-defined process language name . To ensure downward compatibility , The name can be in single quotation marks ( Surround ). If single quotation mark is used , Then the quotation marks must be capitalized ;
- TRANSFORM { FOR TYPE type_name } [, ... ] }: List of type conversions , Applicable to calls to functions ;
- WINDOW: Indicates that the function is a window function , Usually only used for C Functions written in language . Cannot change when replacing function definitions WINDOW attribute ;
- IMMUTABLE: It means that the function always returns the same result when giving the same parameter value ;
- STABLE: Indicates that the function cannot modify the database , For the same parameter value , In the same table scan , The return value of this function remains unchanged , But the return value may be different SQL Changes between statements ;
- VOLATILE: Indicates that the value of this function can be changed in a table scan , Therefore, no optimization will be done ;
- LEAKPROOF: Point out that the parameters of this function only include the return value .LEAKPROOF It can only be set by the system administrator ;
- CALLED ON NULL INPUT: Indicates that some parameters of the function are NULL Can be called in the normal way . This parameter can be omitted ;
边栏推荐
- Use go language to realize try{}catch{}finally
- How to deal with cache hot key in redis
- 返回一个树形结构数据
- GBase 8c系统表pg_cast
- 内存池(内核角度理解new开辟空间的过程)
- GBase 8c系统表-pg_conversion
- Su Shimin: 25 principles of work and life
- 通达OA 首页门户工作台
- Restcloud ETL cross database data aggregation operation
- Kotlin middle process understanding and Practice (I)
猜你喜欢
面试项目技术栈总结
[Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor
SPI mechanism
udp接收队列以及多次初始化的测试
Deep learning notes (constantly updating...)
MySQL learning 03
Detailed analysis of micro service component sentinel (hystrix)
Trial setup and use of idea GoLand development tool
The use of Flink CDC mongodb and the implementation of Flink SQL parsing complex nested JSON data in monggo
Machine learning notes (constantly updating...)
随机推荐
GBase 8c系统表-pg_constraint
Gbase 8C system table PG_ conversion
The Sandbox阐释对元宇宙平台的愿景
Kotlin middle process understanding and Practice (II)
机器学习流程与方法
stm32F407-------ADC
4. 类和对象
Recommendation letter of "listing situation" -- courage is the most valuable
Su Shimin: 25 principles of work and life
awk从入门到入土(0)awk概述
简单理解svg
微信小程序開發工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理問題
GBase 8c系统表-pg_authid
创建+注册 子应用_定义路由,全局路由与子路由
Detailed introduction to the usage of Nacos configuration center
GBase 8c 函数/存储过程参数(一)
Socket编程
JS的装箱和拆箱
SPI机制
各国Web3现状与未来