我是PostgreSQL的完整初學者。我非常驚訝Postgres提供的hstore數據類型。那麼,我正在使用Rails 3框架並開發一個使用PostgreSQL的簡單應用程序。我想在一個字段中存儲散列數組。 對於EG:是否有可能在PostgreSQL中擁有一個hstore數組
authors: [
{
name: "abc",
email: "[email protected]"
},
{
name: "xyz",
email: "[email protected]"
}
]
這可能在PostgreSQL中使用Rails 3?如果是這樣,有人可以提供見解如何?
感謝
那麼,它當然可以在PG端:http://sqlfiddle.com/#!1/16e4c/3 – 2013-04-24 15:05:17
你知道你如何在Rails中實現這個功能。我是一個完整的新手入門。謝謝 – swaroopsm 2013-04-24 15:11:59