Re: Using q() to define a query
- From: hjp@xxxxxxxxx (Peter J. Holzer)
- Date: Mon, 14 Jan 2008 10:40:10 +0100
On 2008-01-12 11:54:03 +0100, Dr.Ruud wrote:
"Carville, Stephen" schreef:
and c.certcrtdate >= to_date('%s','MM-DD-YYYY')
Aaargh, you should always use 'YYYY-MM-DD'.
While I prefer YYYY-MM-DD, too (and where is MM-DD-YYYY used, anyway?
Isn't that usually written as MM/DD/YYYY or MM.DD.YYYY?), it doesn't
make a difference here: The string is converted to a date type, and
then two date values are compared. That one of them was computed from a
string is irrelevant.
hp
--
_ | Peter J. Holzer | If I wanted to be "academically correct",
|_|_) | Sysadmin WSR | I'd be programming in Java.
| | | hjp@xxxxxxxxx | I don't, and I'm not.
__/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users
Attachment:
pgp2S8W4Bi8vc.pgp
Description: PGP signature
- Follow-Ups:
- RE: Using q() to define a query
- From: Stephen Carville
- RE: Using q() to define a query
- References:
- Using q() to define a query
- From: Colin Wetherbee
- Re: Using q() to define a query
- From: John Scoles
- RE: Using q() to define a query
- From: Stephen Carville
- Re: Using q() to define a query
- From: Dr.Ruud
- Using q() to define a query
- Prev by Date: RE: Using q() to define a query
- Next by Date: Re: Using q() to define a query
- Previous by thread: Re: Using q() to define a query
- Next by thread: RE: Using q() to define a query
- Index(es):
Relevant Pages
|