The error is when I run:
execute immediate 'update teste set num = 1234 where num = 1';
Exception:
java.sql.SQLSyntaxErrorException: ORA-00900: instrução SQL inválida
The error is when I run:
execute immediate 'update teste set num = 1234 where num = 1';
Exception:
java.sql.SQLSyntaxErrorException: ORA-00900: instrução SQL inválida
You should only use the update command
update teste set num = 1234 where num = 1
EXECUTE IMMEDIATE is only for executing SQL statements within function blocks or PL / SQL triggers (see documentation)