Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How To Extract Hour From A Date Column In A Table?
Rauf Sarwar wrote:
> cdavis10717_at_comcast.net wrote: >
> > > select to_char(your_date_column, 'HH24') from your_table; > This is ofcourse all in the docs. > > Regards > /Rauf >
Well,
beginning from 9.0.1 you will also find in the docs some syntax like
SELECT EXTRACT(HOUR FROM my_date_column) FROM my_table
see e.g.
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/functions050.htm#i1017161
Regards Peter Received on Wed Apr 05 2006 - 17:43:57 CDT