小编for*_*rtm的帖子

在 MySQL 中实现 PostgreSQL hstore 功能

请建议任何可以支持键值对集合存储在表的任何列中的 MySQL 5.5+ 引擎。

我不知道这个特性是否在 MySQL 中开箱即用,如 PostgreSQL 等价于HSTORE,它非常有用并增加了一些 NoSQL 的好处..

PostgreSQL 中的示例 -

SELECT 'a=>1,a=>2'::hstore;
  hstore
----------
 "a"=>"1"
Run Code Online (Sandbox Code Playgroud)

来源 - http://www.postgresql.org/docs/current/static/hstore.html

mysql postgresql hstore

5
推荐指数
1
解决办法
5461
查看次数

标签 统计

hstore ×1

mysql ×1

postgresql ×1