简体   繁体   English

MySQL,在JSon字段中搜索?

[英]Mysql, search in JSon field?

In my MySQL Database, some fields are " JSon text " fields. 在我的MySQL数据库中,某些字段是“ JSon text ”字段。

Seoemtimes, I need to search/select from what these Json contain. Seoemtimes,我需要从这些Json包含的内容中进行搜索/选择。 How should I do ? 我应该怎么做 ?

Is there MySQL tools for achieving it ? 有MySQL工具可以实现吗?

Thanks 谢谢

http://labs.mysql.com/ refeers to MySQL JSon. http://labs.mysql.com/代表使用MySQL JSon。 It is not fit for production yet. 它尚不适合生产。

Using a specific JSON type, rather than VARCHAR or TEXT, is definetely in progress by the MySQL Labs'. MySQL实验室正在明确定义使用特定的JSON类型而不是VARCHAR或TEXT。 It can be used with the latest MySQL releases, but seems quite beta. 它可以与最新的MySQL版本一起使用,但似乎是beta。 Anyway, it's promising. 无论如何,这是有希望的。

Googling a bit provides even documentation about it. 仔细搜索甚至提供有关它的文档。 JSON type is to be a new type for MySQL. JSON类型将成为MySQL的新类型。 it will make possible to search in Json-typed filed , and also to insert/delete/select, etc. 它将可以搜索Json类型的字段,还可以插入/删除/选择等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM