当前位置:网站首页>GBase 8c 函数/存储过程参数(一)
GBase 8c 函数/存储过程参数(一)
2022-07-03 02:18:00 【大壮十二】
- name:要创建的函数的名称(可以被模式修饰),取值范围:字符串;
- argmode:函数参数的模式,取值范围:IN、OUT、INOUT或者VARIADIC,缺省为IN。只有OUT模式的参数后面能跟VARIADIC(VARIADIC用于声明数组类型的参数),且OUT和INOUT模式的参数不能用在RETURNS TABLE符的函数定义中;
- argname:函数参数的名称,取值范围:字符串;
- argtype:函数参数的数据类型;
- default_expr:参数的默认表达式;
- rettype:函数返回值的数据类型,如果有OUT或IN OUT参数,可以省略RETURNS子句,如果未省略则RETURNS子句必须和输出参数表示的结果类型一致:若多个输出参数,则为RECORD否则与单个输出参数的类型相同。SETOF修饰词表示该函数将返回一个集合,而不是单独一项;
- column_name:字段名称;
- column_type:字段类型;
- lang_name:用以实现函数的语言的名字。可以是SQL,C,internal,或者是用户定义的过程语言名字。为了保证向下兼容,该名字可以用单引号(包围)。若采用单引号,则引号内必须为大写;
- TRANSFORM { FOR TYPE type_name } [, ... ] }:类型转换的列表,适用于对函数的调用;
- WINDOW:表示该函数是窗口函数,通常只用于C语言编写的函数。替换函数定义时不能改变WINDOW属性;
- IMMUTABLE:表示该函数在给出同样的参数值时总是返回同样的结果;
- STABLE:表示该函数不能修改数据库,对相同参数值,在同一次表扫描里,该函数的返回值不变,但是返回值可能在不同SQL语句之间变化;
- VOLATILE:表示该函数值可以在一次表扫描内改变,因此不会做任何优化;
- LEAKPROOF:指出该函数的参数只包括返回值。LEAKPROOF只能由系统管理员设置;
- CALLED ON NULL INPUT:表明该函数的某些参数是NULL的时候可以按照正常的方式调用。该参数可以省略;
边栏推荐
- 机器学习笔记(持续更新中。。。)
- Y54. Chapter III kubernetes from introduction to mastery -- ingress (27)
- Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
- 5. File operation
- Answers to ten questions about automated testing software testers must see
- Unrecognized SSL message, plaintext connection?
- require.context
- Recommendation letter of "listing situation" -- courage is the most valuable
- Kotlin middle process understanding and Practice (I)
- [Yu Yue education] China Ocean University job search OMG reference
猜你喜欢
![[Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor](/img/06/ab333a4752de27eae2dd937cf579e2.png)
[Flutter] dart: class; abstract class; factory; Class, abstract class, factory constructor

线程安全的单例模式

What are the differences between software testers with a monthly salary of 7K and 25K? Leaders look up to you when they master it

UDP receive queue and multiple initialization test

微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
![[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)](/img/41/2413af283e8f1db5d20ea845527175.gif)
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)

Redis:Redis的简单使用

y54.第三章 Kubernetes从入门到精通 -- ingress(二七)

Job object of collaboration in kotlin

How to deal with cache hot key in redis
随机推荐
[fluent] fluent debugging (debug debugging window | viewing mobile phone log information | setting normal breakpoints | setting expression breakpoints)
Answers to ten questions about automated testing software testers must see
elastic stack
机器学习笔记(持续更新中。。。)
Deep learning notes (constantly updating...)
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
CFdiv2-Fixed Point Guessing-(区间答案二分)
Explore the conversion between PX pixels and Pt pounds, mm and MM
leetcode961. Find the elements repeated N times in the array with length 2n
Recommendation letter of "listing situation" -- courage is the most valuable
微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
Memory pool (understand the process of new developing space from the perspective of kernel)
Swift开发学习
Leetcode(540)——有序数组中的单一元素
Return the only different value (de duplication)
Hard core observation 547 large neural network may be beginning to become aware?
Pytorch convolution network regularization dropblock
4. Classes and objects
How do it students find short-term internships? Which is better, short-term internship or long-term internship?
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque