 |
|
 |
|
Next: Access Xp Slow when multi user connected??
|
| Author |
Message |
External

Since: Feb 15, 2005 Posts: 4
|
(Msg. 1) Posted: Wed Oct 29, 2008 4:36 am
Post subject: Select returned multiple values. Archived from groups: comp>databases>ingres (more info?)
|
|
|
My colleague has just found something strange...
We have a procedure in the form
declare global temporary table session.temp as
select <some columns> from tablea a, tableb b tablec c
where <some conditions>
and not exists (select * from tabled d
where d.column1 = a.column1
and d.column2 = c.column2)
on commit preserve rows with norecovery
tabled is a btree table whose primary unique key is (column1,column2)
He wanted to amend <some conditions> and, in order to test the changes
tried to run just the select part of the statement (not creating the
temporary table) in ISQL on a test database.
The query failed with error E_US1196 SELECT returned multiple values
reinstating the creation of the temporary table allows the SQL to
complete successfully
A quick glance at the QEP's from the two versions (with and without
the temporary table) suggests they are quite different, which seems
odd as the actual "select" is the same in both cases
Can anyone offer any insight as to why this might be... >> Stay informed about: Select returned multiple values. |
|
| Back to top |
|
 |  |
External

Since: Apr 23, 2007 Posts: 4
|
(Msg. 2) Posted: Sun Nov 09, 2008 2:34 am
Post subject: Re: Select returned multiple values. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi TIm,
I don't know whether you have had any responses, but I have seen one
case of an E_US1196 error. It appears to have been resolved by a patch
containing the fix for bug 113519. This was back in March 2006, on
2.6. What version and platform are you running?
John
On Oct 29, 10:36 pm, Tim Ellis wrote:
> My colleague has just found something strange...
> We have a procedure in the form
>
> declare global temporary table session.temp as
> select <some columns> from tablea a, tableb b tablec c
> where <some conditions>
> and not exists (select * from tabled d
> where d.column1 = a.column1
> and d.column2 = c.column2)
> on commit preserve rows with norecovery
>
> tabled is a btree table whose primary unique key is (column1,column2)
>
> He wanted to amend <some conditions> and, in order to test the changes
> tried to run just the select part of the statement (not creating the
> temporary table) in ISQL on a test database.
>
> The query failed with error E_US1196 SELECT returned multiple values
>
> reinstating the creation of the temporary table allows the SQL to
> complete successfully
>
> A quick glance at the QEP's from the two versions (with and without
> the temporary table) suggests they are quite different, which seems
> odd as the actual "select" is the same in both cases
>
> Can anyone offer any insight as to why this might be... >> Stay informed about: Select returned multiple values. |
|
| Back to top |
|
 |  |
External

Since: Feb 15, 2005 Posts: 4
|
(Msg. 3) Posted: Thu Nov 13, 2008 5:22 am
Post subject: Re: Select returned multiple values. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Nov 9, 10:34 am, John Dennis wrote:
> Hi TIm,
>
> I don't know whether you have had any responses, but I have seen one
> case of an E_US1196 error. It appears to have been resolved by a patch
> containing the fix for bug 113519. This was back in March 2006, on
> 2.6. What version and platform are you running?
Thanks John
we are still currently on II2.0/0308 (axm.vms), though we should be
upgrading soon to the current release. >> Stay informed about: Select returned multiple values. |
|
| Back to top |
|
 |  |
| Related Topics: | How to get number of returned rows of another select query? - To get number of returned rows directly in sql, I usually write sql this way: SELECT count(*) as row_count FROM ( SELECT DISTINCT "rt_airline" FROM "route" WHERE "rt_airline" IS NOT NULL ) It works in Access, SQLServer...
assigning values to long varchar's using string literals o.. - Quick Ingres r3 puzzle for you, I'm trying to load 32,000 bytes into a long varchar field. I'm not using embedded sql, I'm using the python dbi driver. It seems however that there is a limit to the size of a literal that can be used, which appears....
Sub-select errors - I am trying to write an SQL update statement. It updates certain customers records (top 100 of those with a certain balance.) My first try had a simple Update statement with a sub-select and order-by. Fairly simple. update nb.customers set .... where....
GRANT SELECT FOR DELETE - Hi all, I've a question about grants... I've a group that have only grant for DELETE any table, and when the user execute the comand SQL DELETE the ingres show this message "E_US0DAE SELECT on table: no GRANT or GRANT compatible permit exists.&quo...
Strange Select Loop problem... - Open VMS v7.2-1 ii2.0/0308 axm.vms I'm (trying to) test a (cobol using embeded SQL) program that uses a cursor to select individuals from a master table, then a Select Loop to look at individual records from a transaction table, starting at the current... |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|