From 21617b49648ff8f31f9fab74bd210d8ffc201d57 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Wed, 3 Jan 2024 17:17:15 +0700 Subject: [PATCH] feat: sql json --- docs/2022-07-31-sql.html | 22 +++++++++++++++++++++- docs/2023-06-06-terminal-workflow.html | 4 ++-- posts/2022-07-31-sql.md | 7 ++++++- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/docs/2022-07-31-sql.html b/docs/2022-07-31-sql.html index 24a8e7b..3e4a5e0 100644 --- a/docs/2022-07-31-sql.html +++ b/docs/2022-07-31-sql.html @@ -105,7 +105,27 @@ everything in there if you want.

I always use MySQL json data type for extra field.

-

JSON data type also used for dumping request, response data.

+

JSON data type is also useful for dumping request, response data.

+ +

+ Use JSON_EXTRACT(col, '$.key') IS NULL to check json field + exist or not. +