CREATE OR REPLACE PROCEDURE procname AS BEGIN execute IMMEDIATE 'CREATE OR REPLACE VIEW viewname AS SELECT col1,col2 FROM table1 UNION ALL SELECT col1, col2 FROM table2; END;
create procedure Procvewsample as exec ('create view testView as select a as Col')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)