For example, I have a column named json in table A
Json column contains json data like this :
record 1 : {"dept_code": "012", "unit_code": "22"}
record 2 : {"dept_code": "013", "unit_code": "23"}
etc
I want to take the data records with json column that contain dept_code = 012
SELECT * FROM table_A WHERE json = ...(looking dept_code = 012)...
How can I do that?
Note :
I tried to find answers on the site stackoverflow, but I did not find it. So I make this question
Maybe this can help: