diff --git a/docs/2022-07-31-sql.html b/docs/2022-07-31-sql.html index b6c9e73..b475516 100644 --- a/docs/2022-07-31-sql.html +++ b/docs/2022-07-31-sql.html @@ -124,24 +124,42 @@
JSON data type is also useful for dumping request, response data.
+ Use JSON_CONTAINS_PATH(col, 'one', '$.key')
to check json
+ field exist or not
+
Use col->'$.key'
to get value
+ For MySQL 5.7 +
++ For MySQL 8.0 +
+
- Use JSON_EXTRACT(col, '$.key') IS NULL
to check json field
- exist or not.
-