【发布时间】:2021-04-23 11:10:51
【问题描述】:
我正在使用带有 regexp_substr 的 Oracle 查询从 JSON 字符串中提取 json 字段。我想要“pickupLocation”的编号(1177):“1177”,但我使用的这个查询不起作用
select to_char(regexp_substr(a.input_msg, '(\w*)("pickupLocation":")(\w*)(")',1,1))
from td_interface_phxsale_log a
我的查询输出:"pickupLocation":"1177"
myjson 数据:
{
"shiptoAddr": "",
"shippingCostAmt": "",
"pickupLocation": "1177"
}
【问题讨论】: