【发布时间】:2019-10-31 02:50:40
【问题描述】:
CREATE OR REPLACE FUNCTION newfunction (Schema1 text, Schema2 text)
RETURNS integer
LANGUAGE plpgsql
SECURITY DEFINER
AS $function$
.
.
.
insert into [Schema1].table (name,phone,address,......)
select name,phone,address,..... from [Schema2].table where....;
我想通过 arg 文本更改架构 可以这样做吗?
【问题讨论】:
标签: postgresql stored-procedures