如何在Postgresql中的存储过程中使用存储过程

时间:2017-03-02 00:43:04

标签: postgresql stored-procedures

我一直在为我们的主要comp sci主题中的活动编写代码。该任务要求使用存储过程更新postgresql中表中的某个字段 enter image description here

我已经创建了一个gettopemp()来检索表中的数据,我想将gettopemp()的信息检索到我的新存储过程updatetopemp()。如何在存储过程中使用存储过程???

1 个答案:

答案 0 :(得分:0)

如果您想将函数名称作为参数传递并在代码中调用它,则必须使用dynamic SQL