Thanks jeremy, you are a good guy. Assuming my column is called creation_date, now, i need to know the time( or date) we created that column .
I use the DB.schema(:table), but i cannot find the field type of what the time we created that field. 2011/10/8 Jeremy Evans <[email protected]>: > On Oct 8, 5:57 am, coolesting <[email protected]> wrote: >> Hi , all. >> >> I want to get the creating date of the column in a table, how can i do that ? > > Obviously English is not your native language. I'd like to help, but > I can really only guess at what you want. First, if you haven't > already, please read Sequel's documentation (http:// > sequel.rubyforge.org/documentation.html). Assuming your column is > called creation_date, you could get the value of the column for a > specific row in the table using: > > DB[:table].where(:id=>some_value).get(:creation_date) > > The argument to #where is going to depend on which row in the table > you care about, so the above is only an example. > > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sequel-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
