With json as
{ "First Name": {"nickname" : "Abc"} }
in json column 'name' of mysql database.
How do I extract such rows in mysql.
Select * from users where name."$.First Name.nickname" = "abc";
won't work. Any solution because I cannot change the json structure in database.
Found the answer:
Select * from users where name."$.""First Name"".nickname" = "abc";
you need to double quote the key of JSON with a space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With