Hello,
Sir,
Ur syntax is right there is no problem but u have to change little bit,
like....
ex: DECARE cur1 cursor for SELECT empname from emp where deptno IN (:ls_array[]) ;
u have to write..
string ls_array[]
ls_array = {'112','232','343'}
ex: DECARE cur1 cursor for SELECT empname from emp where deptno IN (:ls_array) ;
I think this will help u ...
u try this...
Regards,
Divyesh Doshi.
Main Topics
Browse All Topics





by: sandeep_patelPosted on 2006-12-06 at 23:14:36ID: 18091297
Hi,
ptlist) - 1)
instead of string array concatenate all values in string variable and then use...
for ex.
string ls_array[] = {'100','200','300'}
string ls_deptlist
integer li_count
For li_count = 1 To UpperBound(ls_array}
ls_deptlist = "'" + ls_array[li_count] + "'" + ","
Next
ls_deptlist = Left(ls_deptlist,len(ls_de
DECLARE cur1 cursor for SELECT empname from emp where deptno IN (:ls_array) ;
Note : Here it is assumed that deptno is varchar. If it is integer then....
For li_count = 1 To UpperBound(ls_array}
ls_deptlist = ls_array[li_count] + ","
Next
Hope this will work...
Regards,
Sandeep