postgres 查询返回记录集的函数
如果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