Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: querying records with date field
On Mon, 15 Oct 2007 11:33:38 -0700, mrajanikrishna_at_gmail.com wrote:
> hi,
>
> I want to retrieve records from a table by comparing the date field.
>
> select * from mytable where joindate >= <my date variable from front-
> end>
>
> my date variable contains date time value. So I want to check with date
> and time.
>>From the above query, I need to get records whose joindate >= 2007-
Use the to_date SQL function with the proper date format. Received on Mon Oct 15 2007 - 13:47:02 CDT
![]() |
![]() |