Following is my syntax:
CREATE PROCEDURE create_vw_XT_if_not_exist()
AS
BEGIN
IF( EXISTS (SELECT X$View.Xv$Name
FROM X$View
WHERE X$View.Xv$Name = 'VW_XT') ) THEN
DROP VIEW VW_XT;
END IF;
CREATE VIEW VW_XT(id,kod) AS SELECT XT.id, XT.kod FROM XT;
END;
My problem...
Hi All!
I would like to make in the Stored Procedure conditional
Create View (If not Exist), but it appears that in my Pervasive SQL (9.1) PCC IF statement doesn't work with DROP VIEW and CREATE VIEW commands.
I can't find this kind of information in Pervasive SQL Reference Manual.
May be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.