SELECT is not valid for EXECUTE IMMEDIATE. If you want to build a SELECT statement dynamically, use a dynamic cursor
DECLARE C1 CURSOR FOR S1;
PREPARE S1 FROM UPD_STRING;
OPEN C1;
If the SELECT statement is always the same, you probably don't need the dynamic / PREPARE form; a static cursor would do.
SELECT is not valid for EXECUTE IMMEDIATE. If you want to build a SELECT statement dynamically, use a dynamic cursor
DECLARE C1 CURSOR FOR S1;
PREPARE S1 FROM UPD_STRING;
OPEN C1;
If the SELECT statement is always the same, you probably don't need the dynamic / PREPARE form; a static cursor would do.