Article View: borland.public.cppbuilder.database.ado
Article #1673Re: Oracle + ADOQuery not returning any data
From: Brian Plotkin
Date: Wed, 24 Mar 2004 23:07
Date: Wed, 24 Mar 2004 23:07
47 lines
2199 bytes
2199 bytes
I've tried it in that format and still got 0 records in my result set. Any other ideas? "mymn" <yusairi@yahoo.com> wrote: >for your information, >if you're using Oracle8i, it's not same as SQL Server format in ADO. >please check your date format for SQL Select statement. >try this :- > >SELECT CUSTOMER >FROM TABLE_1 >WHERE SUBMITTED >= '01-Dec-2003' and SUBMITTED <= '01-Jan-2004' > >or > >SELECT CUSTOMER >FROM TABLE_1 >WHERE SUBMITTED >= '2003-12-01' and SUBMITTED <= '2004-01-01' > > > >"Brian Plotkin" <brian.plotkin@fnc.fujitsu.com> wrote in message >news:40327cfc$1@newsgroups.borland.com... >> >> Hello all, >> >> --> Sorry for the cross post, I meant to post this message >> here, not in the sqlservers group. <-- >> >> I have a simple query : >> SELECT CUSTOMER, SUBMITTED FROM TABLE_1 >> WHERE SUBMITTED BETWEEN '01-Dec-2003' AND '01-Jan-2004' >> >> If I submit this query through SQL Explorer, I get what I >> expect. >> >> If I submit this query through an ADOQuery in my application, >> I get a result set of 0 (zero) records. >> >> The database is Oracle 8i and my compiler is BCB 6 (Enterprise), >> in case you wanted to know. >> >> Any ideas?? >> > >
Technical Details
Message-ID:
<406214a4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40327cfc$1@newsgroups.borland.com> <404bdc47@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f885f4d71cea6b34 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-03-24 15:10:16 PST From: "Brian Plotkin" <brian.plotkin@fnc.fujitsu.com> Sender: "Brian Plotkin" <brian.plotkin@fnc.fujitsu.com> Reply-To: "Brian Plotkin" <brian.plotkin@fnc.fujitsu.com> Subject: Re: Oracle + ADOQuery not returning any data Newsgroups: borland.public.cppbuilder.database.ado X-User-Info: 168.127.0.52 X-Forwarded-For: 167.254.147.91 References: <40327cfc$1@newsgroups.borland.com> <404bdc47@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <406214a4$1@newsgroups.borland.com> Date: 24 Mar 2004 15:07:16 -0800 X-Trace: newsgroups.borland.com 1080169636 207.105.83.66 (24 Mar 2004 15:07:16 -0800) Lines: 48 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail