Any one had any idea if the for update CURSOR can be used for the following selection together with the order by:
let sql_str = "select * from tableA where ctry_cd = 'AA' ",
" for update ",
" order by accnt_no desc "
prepare stmt1 from sql_str
declare cur1 cursor for stmt1
Facing runtime error while executing the binary.
SQL statement error number -201.
A syntax error has occurred.