EXECUTE ... END-EXEC — execute an anonymous block
EXECUTE anonymous block END-EXEC;
EXECUTE ... END-EXEC is used to execute an anonymous block in LightDB.
anonymous blockAn anonymous block that begins with begin or declare.
Here is an example that executes an anonymous block
using EXECUTE:
EXEC SQL EXECUTE
begin
select val into :val from test where id = :id;
end;
END-EXEC;
There is no anonymous block the SQL standard,
and EXECUTE ... END-EXEC is not specified in the SQL standard.
This is for oracle compatibility.