如何获取包含apiData
和内部的数据"method":"transfer"
我的字段名称是详细信息,它包含以下数据:
{"paymentMethodData":{"id":"3","api_id":"2","account_id":null,"account_ids":null,"installment_state":null,"name_1":"Havale"},"apiData":{"id":"2","method":"transfer","name":"Havale"}}
此查询有效,但如果其他选项包含"method":"transfer"
,它会得到。它不应该获取数据。如果它有apiData
option 和 inside "method":"transfer"
,它应该得到:
SELECT * FROM task_payment_actions AS tpa
INNER JOIN task_payment_action_detail AS tpad ON tpad.task_payment_action_id=tpa.id
WHERE tpad.detail REGEXP '(.*\"method\":\"transfer\".*)'