I have a table containg two columns: Customer id json_data (it contains JSON object) is as follow { "nameValuePairs": { "CON ...
I have a table containg two columns: Customer id json_data (it contains JSON object) is as follow { "nameValuePairs": { "CON ...
The following SQL query works fine: The saved field is in JSON datatype. However, when I try to use activerecord query for Gridview widget's search ...
A query like this: SELECT JSON_ARRAYAGG(JSON_OBJECT('id', id, 'tag', tag)) from all_tags; produces a result like this: The above is ok, but what ...
My goal is to completely change the listings field Structure in the database: { "other":{ "price": 0, "isFrozen": false, }, "listings": { "price": 0, ...
I have a map with multiple key value pairs and I want to unnest them into separate rows. I tried JSON_EXTRACT but that only extracts json from part ...
Edited I have a mysql table "prop" with a column "detail" that contains a dict field. I have tried to convert this to a table. using this I hav ...
i try and get null result I wont too see first example unique name and second example name and value ...
I need to be able to access all the available JSON data, the problem is that a lot of it is nested. I currently have this query. I need instead of ...
I have a JSON column "jobs" that looks like this: I want to filter the array by object key values. For example: To find all items that have target ...
Can someone help explain the following behavior? As near as I can tell, it looks like when a JSON object is assigned to a mysql variable, it may or ma ...
I have a student table select this row based on the key-value pair using the WHERE clause. How can I do that? I tried this ...
I have a number of fields that are applicable to some rows but not others. Instead of making individual fields and making them null for particular row ...
I have a JSON object in my DataBase Now I want to make some calculation on it so I wrote a function But got 0 instead of 2 Could you explain me ...
I have a MySQL 5.7 table that looks like this: id meta 1 null 2 {"grant_ids": ...
I have an existing longtext column in a huge table (100MM rows) which includes json strings. Changing the type to json would lock the table. As an alt ...
From a table with a column with json array of dictionaries i need to extract all values of key "user_id" one per row. If null or empty array return NU ...
SELECT JSON_EXTRACT(z2schedule,'$[*].start') as startDate from cpmdev_z2weekly_schedule After running above code I am getting response as :- N ...
I have column with array like this [{ amount: 5 }, { amount: 3.4} ] Some records are empty [] I use sum for other columns. When i try use sum with JS ...
I have a posts table with a JSON column of an array with IDs. This column's data looks exactly like: [1, 3, 17, 19] These values are not quoted. To ...
Am trying to turn all scalar values in any given JSON into an empty string. Given i have a JSON column called arbitraryjsonvalues in mysql database t ...