SyntaxFix
Write A Post
Hire A Developer
Questions
declare n number(10); begin select count(*) into n from tab where tname='TEST'; if (n = 0) then execute immediate 'create table TEST ( ID NUMBER(3), NAME VARCHAR2 (30) NOT NULL)'; end if; end;