Hello! I have a table table in mysql and in it customer_id = 31 columns, custom_field , which stores the value JSON {"3":"Ivanovich","2":"nick_Ivan"} .
I need to select nickname nick_Ivan .
How can I write such a query?
SELECT `custom_field` FROM `table` WHERE `customer_id` = 31; Give: {"3":"Ivanovich","2":"nick_Ivan"}
Need to get nick_Ivan