Article View: borland.public.cppbuilder.database.ado
Article #5770Re: SQL, Insert Date
From: Yuancai (Charlie) Ye
Date: Thu, 08 Feb 2001 17:35
Date: Thu, 08 Feb 2001 17:35
22 lines
1699 bytes
1699 bytes
Hi,
Use a parameterized statement instead.
Yuancai (Charlie) Ye
See 27 OLEDB examples at http://www.geocities.com/oledbpro
"Jorge Leibowich" <jorge@lid.com.ar> wrote in message
news:3a82d19e_1@dnews...
> I'm trying to insert or select a date in a paradox database with Tquery
> Object, but NOTHING!! Only errors, I'm tryied ALL
>
> Select * from xxx where TheDate = '10/10/10'
> Select * from xxx where TheDate = 10/10/10
> Select * from xxx where TheDate = #10/10/10#
> Select * from xxx where TheDate = ?10/10/10?
> Select * from xxx where TheDate = :10/10/10:
>
> And nothing works, are there an especial way to manage dates or time
fields?
> And with TimeStamp fields?
>
>
Technical Details
Message-ID:
<3a82d76c$1_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!208.21.4.213References:
<3a82d19e_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f91783d41c11e6ad X-Google-Attributes: gid10698b,public X-Google-Thread: 10bf25,f91783d41c11e6ad X-Google-Attributes: gid10bf25,public X-Google-ArrivalTime: 2001-02-08 09:36:53 PST Reply-To: "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com> From: "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.desktop References: <3a82d19e_1@dnews> Subject: Re: SQL, Insert Date Date: Thu, 8 Feb 2001 12:35:15 -0500 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 208.21.4.213 Message-ID: <3a82d76c$1_2@dnews> X-Trace: 8 Feb 2001 09:29:16 -0800, 208.21.4.213 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!208.21.4.213