Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: Not able to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 8871 of 9366
Post > Topic >>

Re: Not able to assign select query "WITH UR" CLUSE TO A VARIABLE

by Tonkuma <tonkuma@[EMAIL PROTECTED] > May 9, 2008 at 05:03 AM

(I didn't tested following opinion.
 I was only refered the manuals
 "DB2 for LUW SQL Reference Volume 1 Version 8" and
 "DB2 for LUW SQL Reference Volume 2 Version 8".)

1) Your SET statement violates the following syntax of SET statement
and "fullselect".

SET (variable1, variable2, ..., variablen) = (row-fullselect);
or
SET variable = expression;
"expression" includes (scalar-fullselect).

You can't specify "isolation-clause" in a "fullselect".

Please try:
SELECT 1 INTO v_temp
  FROM Table_1 A , Table_2 B
 WHERE a.cd = b.cd
  WITH UR;

2) I afraid that the SELECT statement may return multiple rows, and
get error.
If there is such possibility, it would be better to add "FETCH FIRST 1
ROW ONLY".
 




 4 Posts in Topic:
Not able to assign select query "WITH UR" CLUSE TO A VARIABLE
situ <SRIDHARA.S@[EMAI  2008-05-09 04:01:22 
Re: Not able to assign select query "WITH UR" CLUSE TO A VARIABL
Tonkuma <tonkuma@[EMAI  2008-05-09 05:03:05 
Re: Not able to assign select query "WITH UR" CLUSE TO A VARIABL
situ <SRIDHARA.S@[EMAI  2008-05-09 05:09:41 
Re: Not able to assign select query "WITH UR" CLUSE TO A VARIABL
Serge Rielau <srielau@  2008-05-09 19:31:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 12:53:46 CDT 2008.