DB2 自定义函数

1、查询DB2的系统函数

select body from syscat.functions where funcname='函数名称'

body 中存放的是函数的具体内容

2、标量函数

create function 函数名(参数 参数类型)

  returns 返回值类型

no external action

begin atomic

       return

                   select函数体

end

如:

3、表值函数

猜你喜欢

转载自blog.csdn.net/nahanai/article/details/84303794
今日推荐