TZSQLProcessor + Return Field
Posted: 20.07.2022, 15:16
Hi, i have a sql script in the Firebird 4 that is like it:
I would like to run this sql and get the Field EXISTE in the returns. I try TZSQLProcessor but i don't know how do this. Someone know how i could do? Thanks.
Code: Select all
EXECUTE BLOCK
RETURNS (EXISTE INTEGER)
AS
BEGIN
EXISTE = 0;
IF (EXISTS(SELECT 1 FROM RDB$PROCEDURES WHERE RDB$PROCEDURE_NAME = 'VEC_OBTERVERSAOEC')) THEN
EXISTE = 1;
SUSPEND;
END