aldob respondió:
Tienes que usar sql dinámico: integer Emp_id_var DECLARE my_cursor DYNAMIC CURSOR FOR SQLSA ; sring ls_sql ls_sql = "SELECT count(*) FROM " + lsString PREPARE SQLSA FROM ls_sql; OPEN DYNAMIC my_cursor ; FETCH my_cursor INTO :Emp_id_var ; CLOSE...