Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: testing date

Re: testing date

From: <meichler1_at_my-dejanews.com>
Date: Tue, 04 Aug 1998 14:04:33 GMT
Message-ID: <6q74dh$9t1$1@nnrp1.dejanews.com>

> > >Does anyone have any pl/sql code that tests the date in a column and
> > >compares it to todays day.
> > >

Try this:

SELECT id
  FROM orders
  WHERE to_char(order_date, 'YYYYMMDD') = to_char(SYSDATE, 'YYYYMMDD');

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Tue Aug 04 1998 - 09:04:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US