AWS Redshift 通过 SQL 检索 UDF 函数定义

问题描述 投票:0回答:1

我正在尝试检索 AWS Redshift 中的 UDF 函数定义。 如果有人可以提供同样的帮助,请感激不已。

我尝试过但失败的事情:

SELECT GET_DDL('FUNCTION','f_next_business_day');

SHOW FUNCTION f_next_business_day;

SELECT prosrc
FROM PG_FUNCTION
WHERE proname = 'f_next_business_day';

SELECT * from pg_catalog.pg_get_functiondef('f_next_business_day', null);

select ddl
from admin.v_generate_tbl_ddl
where schemaname = 'public' --and tablename='some_table'
order by seq asc
amazon-web-services function amazon-redshift user-defined-functions ddl
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.