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 > Not able to ass...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 8871 of 9131
Post > Topic >>

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

by situ <SRIDHARA.S@[EMAIL PROTECTED] > May 9, 2008 at 04:01 AM

Hi,
i'm using Db2 Version 8.2.

in a stored procedure i'm assiging a the result of sql query ( with
"WITH UR" ) to a variable as shown below.


 SET v_temp =  ( SELECT 1 FROM
                                      Table_1 A , Table_2 B
                                    WHERE  a.cd=b.cd  )
                    	      WITH UR;

But i'm getting the fallowing syntax error.

An unexpected token "WITH UR" was found following " ".  Expected
tokens may include:  "<space>".  LINE NUMBER=91.  SQLSTATE=42601

i even tried to put that cluase inside the bracket but no luck.

can any body please suggest be the work around for this.

Thanks,
Situ
 




 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
tan13V112 Thu Jul 24 6:27:27 CDT 2008.