🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1677

Re: Oracle + ADOQuery not returning any data

#1677
From: mymn
Date: Fri, 26 Mar 2004 10:13
61 lines
2593 bytes
hi brian,

try this first :-

SELECT CUSTOMER
FROM TABLE_1
WHERE SUBMITTED > '01-Dec-2003'

if return 0, confirm there is no record in your database.


"Brian Plotkin" <brian.plotkin@fnc.fujitsu.com> wrote in message
news:406214a4$1@newsgroups.borland.com...
>
> 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: <40640254@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40327cfc$1@newsgroups.borland.com> <404bdc47@newsgroups.borland.com> <406214a4$1@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-26 02:21:13 PST
From: "mymn" <yusairi@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40327cfc$1@newsgroups.borland.com> <404bdc47@newsgroups.borland.com> <406214a4$1@newsgroups.borland.com>
Subject: Re: Oracle + ADOQuery not returning any data
Date: Fri, 26 Mar 2004 18:13:52 +0800
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4922.1500
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800
NNTP-Posting-Host: 219.93.61.50
Message-ID: <40640254@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080296020 219.93.61.50 (26 Mar 2004 02:13:40 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail