什麼SQL查詢會將PostgreSQLhstore列轉換爲常規表,其中所有hstore行中的不同關鍵字形成表中的列,並且這些值將填充相應列中的行?如何將PostgreSQL hstore列翻譯成一行?
例如,我如何轉換hstore柱
hstore
------------------------------------
"a"=>"1", "b"=>"2", "c"=>"3"
"a"=>"4", "b"=>"6", "c"=>"5", "d"=>7
"a"=>"8", "b"=>"3", "c"=>"8"
成 「等效」 表
a b c d
---------------
1 | 2 | 3 |
4 | 6 | 5 | 7
8 | 3 | 8 |
其中不同hstore鍵的a,b,c和d形成在列表和它們的值填充每列中的行?