# Getting column names from a record set

**URL:** <https://discuss.rubyonrails.org/t/getting-column-names-from-a-record-set/9603>\
**Category:** rubyonrails-talk\
**Created:** [March 2, 2007, 6:02pm UTC](https://discuss.rubyonrails.org/t/getting-column-names-from-a-record-set/9603 "2007-03-02T18:02:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Hallstrom1](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@Philip\_Hallstrom1](https://discuss.rubyonrails.org/u/Philip_Hallstrom1)\
**Post date:** [March 2, 2007, 6:02pm UTC](https://discuss.rubyonrails.org/t/getting-column-names-from-a-record-set/9603/1 "2007-03-02T18:02:30Z")

</div>

> I'm trying to get the column names associated w/ this record set:
> 
> account\_all = Account.find(:all)
> 
> Since account\_all is an array - how do I get the names?

Account.column\_names

-philip
