skip to Main Content

mysql search value from nested json

I am trying to search userId for value 22 from nested json in mysql Column my json is '{ "data": [ {"calendarId":"11","userId": "12"}, {"calendarId":"21","userId": "22"} ] }' I tried the following syntax : 1. where JSON_EXTRACT(column_field,'$.userId') = 22 2. where…

VIEW QUESTION

MySQL 5.7 full outer join

Table 1 and sample data:- CREATE TABLE student_p ( ID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, S_id INT UNSIGNED NOT NULL, Points DOUBLE NOT NULL, P_date DATE NOT NULL ); INSERT INTO student_p VALUES (50055, 3330, 45, '2023-11-30'), (50056,…

VIEW QUESTION
Back To Top
Search