How to read JSON object matching query params? I want to filter data for video urls which only contains query params from metadata column and replace it by the removing the query params.
| metadata |
|---|
| {"video-url":"xyz.com/video/xy4jnj?pubtool=oembed","provider":"some-video","video-id":"x8cse6q"} |
| {"video-url":"xyz.com/video/x8cse6q?pubtool=oembed","provider":"some-video","video-id":x8cse6q} |
| {"video-url":"xyz.com/video/x8cse6q","provider":"some-video","video-id":"x8cse6q"} |
select * from content where metadata.video-url ilike %?pubtool%
Expected to return rows which consists of query param in the metadata column for the field video-url.
MySQLandPostgreSQLare two different products. Please keep only one tag for the DBMS.