Study/MySQL
[MySql] json string을 파싱하여 쿼리 (조건, 반환)
굥쓰
2022. 5. 27. 14:37
SELECT uId, charId, dateKey, date, TRIM(BOTH '"' FROM ( json_extract(parameterString, '$.itemId') ))
, TRIM(BOTH '"' FROM ( json_extract(parameterString, '$.amount') ))
, parameterString FROM jsonlog WHERE dateKey = 20220526 and logid = 50701 AND parameterString LIKE '%itemRemoveType":"45"%';