"CommandText does not return a result set" when using "WITH" clause in Oracle
- From: "Nenad" <Nenad.Vrgoc@xxxxxxxxx>
- Date: 30 Sep 2005 00:28:49 -0700
I have a correct SQL that works through
- BDE's TQuery,
- Delphi's 'SQL Explorer'
- Oracle 10g iSQL*Plus
but not when run in an application's TADOQuery.
I get an error:
"CommandText does not return a result set"
The SQL has a 'WITH' (it is the cause of the error), like this:
WITH
SEL1 as(
select *
from table1
group by field1),
SEL2 as(
select *
from table2
group by field2)
select a.field3, b.field4
from SEL2 a,
SEL1 b
where a.field1 = b.field1
Any ideas?
Thanks in advance for any help.
Nenad
.
- Prev by Date: Re: how to assign a recordset of ado to a variant?
- Previous by thread: Importing records in ADOTable
- Index(es):
Relevant Pages
|