postgres 查询返回记录集的函数

时间:2020-04-16 23:28:35   收藏:0   阅读:263

如果postgres 的函数返回的是setof record,使用select直接查询函数会报错:

[42601] 错误: 一个字段定义列表需要返回 "record" 的函数 位置:16

要使用如下方式来查询:

            select * from func_logistcs_price_for_stock_picking(%s, %s, %s,%s) f (price_trans float, price_site float);

原文:https://www.cnblogs.com/qianxunman/p/12716077.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!