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
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
Code: Select all
SELECT count(*) as EXISTE FROM RDB$PROCEDURES WHERE RDB$PROCEDURE_NAME = 'VEC_OBTERVERSAOEC'