I have the following table structure:
Themetadata
fieldisliketexttype,butIbelieveit'sactuallyaJSON.
WhenIdo:
SELECTmetadataFROMmaxpay.mp_pay_orders;
Theresultis:
{"idtransactions":122882,"transação":122882}
I need to extract the idtransactions
of this field in a way that I can query it with a IN
. Example:
SELECT idtransactions from tabela1 where idtransactions in
(select metadata??? from maxpay.mp_pay_orders)
The MySQL version of the server is 5.6. By the answers, I have already seen that it is not JSON, since it is only available from version 5.7.8. But I can not extract this information from this text in any way.