Mysql 中的Json函数大全

本文详细介绍了MySQL中用于处理JSON数据类型的函数,包括JSON_EXTRACT、JSON_UNQUOTE、JSON_APPEND、JSON_ARRAY等,以及它们在实际操作JSON文档中的用法。从插入、提取、修改到查询JSON数据,这些函数提供了强大的支持,适用于需要处理JSON格式数据的数据库操作。
摘要由CSDN通过智能技术生成
NameDescriptionIntroducedDeprecated
->Return value from JSON column after evaluating path; equivalent to JSON_EXTRACT().
->>Return value from JSON column after evaluating path and unquoting the result; equivalent to JSON_UNQUOTE(JSON_EXTRACT()).5.7.13
JSON_APPEND()Append data to JSON documentYes
JSON_ARRAY()Create JSON array
JSON_ARRAY_APPEND()Append data to JSON document
JSON_ARRAY_INSERT()Insert into JSON array
JSON_CONTAINS()Whether JSON document contains specific object at path
JSON_CONTAINS_PATH()Whether JSON document contains any data at path
JSON_DEPTH()Maximum depth of JSON document
JSON_EXTRACT()Return data from JSON document
JSON_INSERT()Insert data into JSON document
JSON_KEYS()Array of keys from JSON document
JSON_LENGTH()Number of elements in JSON document
JSON_MERGE()Merge JSON documents, preserving duplicate keys. Deprecated synonym for JSON_MERGE_PRESERVE()5.7.22
JSON_MERGE_PATCH()Merge JSON documents, replacing values of duplicate keys5.7.22
JSON_MERGE_PRESERVE()Merge JSON documents, preserving duplicate keys5.7.22
JSON_OBJECT()Create JSON object
JSON_PRETTY()Print a JSON document in human-readable format5.7.22
JSON_QUOTE()Quote JSON document
JSON_REMOVE()Remove data from JSON document
JSON_REPLACE()Replace values in JSON document
JSON_SEARCH()Path to value within JSON document
JSON_SET()Insert data into JSON document
JSON_STORAGE_SIZE()Space used for storage of binary representation of a JSON document5.7.22
JSON_TYPE()Type of JSON value
JSON_UNQUOTE()Unquote JSON value
JSON_VALID()Whether JSON value is valid
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值