【发布时间】:2020-07-04 03:55:30
【问题描述】:
谁能帮助我如何从这个选择查询中提取存储在“TimeCounterTotals”列中的 json 数组数据?当我将硬编码数据传递给 json_to_recordset 函数时,它工作正常,但如何在选择查询中执行?
select "CompanyId", json_to_recordset("TimeCounterTotals") as x("TimeTotal" decimal, "TimeCounterId" varchar)
from "TimeCalculationAndApprovals" where "TimeCounterTotals" is not null limit 1;
【问题讨论】:
标签: c# .net postgresql