$cursor
"jain cj" <[email protected]> Wed, 27 Aug 2003 09:56:29 +0000
| Newsgroups | gmane.comp.db.sapdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
here I want to use a dynamic query(changes depends on condition) for
$cursor.
eg:
str VARCHAR(2000);
str="select * from tablename"; ( This will change depends on condition)
SET $CURSOR = 'TEST';
DECLARE :$CURSOR CURSOR FOR SELECT :str ;
but I am gettin error.
what to do to use a string (str) to the cursor declaration
Thanx in advance.
by Jain
_________________________________________________________________
Got a wish? Make it come true.
http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt
Best personal loans!