文档地址https://mariadb.com/kb/en/json_extract/

//创建临时表

create temporary table if not EXISTS testab(
    namm VARCHAR(200)
);
//插入数据
INSERT into testab values('{"name":"1234"}');

//查询全部数据
select * from testab;

//查询JSON数据
select * from testab where JSON_EXTRACT(namm,'$.name')="123";

mysql 查询字段中JSON字符串中的键值 使用JSON_EXTRACTmysql 查询字段中JSON字符串中的键值 使用JSON_EXTRACT

相关文章:

  • 2022-02-26
  • 2021-06-24
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-08-05
  • 2021-09-05
相关资源
相似解决方案