【发布时间】:2020-12-14 10:18:14
【问题描述】:
我的数据如下:
CLUID EVENT_PAYLOAD STEP
1998-06-22-23.58.16.792243 {"type":"page","name":"currentAccount/88095C45B7E1D68346905AA7B791F731D7F94715/new-transfer","source":"currentAccount/:id/new-transfer","data":{}} currentAccount/:id/new-transfer
1997-08-25-18.52.07.994112 {"type":"page","name":"orders/sign/200831527425199","source":"orders/sign(/:orderIds)","data":{}} orders/sign(/:orderIds)
2000-05-09-20.49.42.573031 {"type":"page","name":"currentAccount/33BF3B031E71719AD30C34588B5832CA8F1EC2D1/orders","source":"currentAccount/:id/orders","data":{}} currentAccount/:id/orders
1998-07-21-20.50.04.641225 {"type":"event","name":"logout","source":"currentAccount/F2A81A2D982AD8D736E5461808CF8C33FDDC9EEC/transactions","data":{"category":"session","normalized":"currentAccount/:id/transactions","eventValue1":"manual"}} logout
我只想选择 EVENT_PAYLOAD 类型为“页面”的数据。
我写过:
SELECT CLUID, STEP--, b.type
FROM VDS_OWNER.PROTO_BEAN_COUNTER_EVENTS_BASE2
WHERE (JSON_TABLE(EVENT_PAYLOAD, '$'
COLUMNS (type VARCHAR2 PATH '$."type"')
)
) = 'page'
我们将不胜感激。 谢谢!
【问题讨论】: