×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Jay,

It's not necessary to match the character literal to the format of the date
field. It's only necessary to use one of the formats that SQL can easily
identify (*USA,*ISO,*EUR,*JIS), or to format it according to whatever
format/separator is in effect for the job (or program if it's embedded SQL).

Regards,

John Taylor
Canada

----- Original Message -----
From: "Jay Peasley" <jpeasley@arbsol.com>
To: <MIDRANGE-L@midrange.com>
Sent: Thursday, August 17, 2000 12:57
Subject: Re: SQL and Date Data Types


> If the date is in an ISO format it would be '2000-10-26' date format.
>
> select * from orderpf where ohdate = '2000-10-26'
>
> Jay
>
> ----- Original Message -----
> From: "Stone, Brad V (TC)" <bvstone@taylorcorp.com>
> To: <MIDRANGE-L@midrange.com>
> Sent: Thursday, August 17, 2000 12:06 PM
> Subject: SQL and Date Data Types
>
>
> > Anyone have any tips or tricks on selecting records with a Date Data
Type
> > field using SQL?
> >
> > select * from orderpf where ohdate = '10/26/2000'
> >
> > and ohdate is type "L"
> >
> > Thanks!
> >
> > Brad
> > +---
> > | This is the Midrange System Mailing List!
> > | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> > | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> > | Questions should be directed to the list owner/operator:
> david@midrange.com
> > +---
> >
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.