0
我收到了列名爲的密鑰的響應,但我不需要它。如何獲得沒有列名稱的響應。從ActiveRecord :: Base.connection.execute的結果中刪除列名稱
這是我不需要的關鍵:時間,高,低,...
我需要的只是結果值。
我得到的結果通過ActiveRecord::Base.connection.execute(q_cmd)
{"time"=>"2014-01-02 01:14:00", "high"=>"2360", "low"=>"2360", "open"=>"2360", "close"=>"2360", "volume"=>"9"}{"time"=>"2014-01-02 01:14:01", "high"=>"0", "low"=>"0", "open"=>"0", "close"=>"0", "volume"=>"0"}{"time"=>"2014-01-02 01:14:02", "high"=>"0", "low"=>"0", "open"=>"0", "close"=>"0", "volume"=>"0"}{"time"=>"2014-01-02 01:14:03", "high"=>"0", "low"=>"0", "open"=>"0", "close"=>"0", "volume"=>"0"}{"time"=>"2014-01-02 01:14:04", "high"=>"0", "low"=>"0", "open"=>"0", "close"=>"0", "volume"=>"0"}