julio 2016-11-14 18:37:24 +00:00
parent dddee443bc
commit 0c84f2cf88
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,16 @@
declare
table_exists exception;
pragma exception_init (table_exists , -00955);
begin
execute immediate
'CREATE TABLE REGION_METROPOLITANA
(
REGIONMETROPOLITANA_ID NUMBER(7,0) NOT NULL ENABLE,
DESCREGION VARCHAR2(100),
ACTIVO NUMBER(1,0),
FECMODIF DATE,
USUARIO_ID NUMBER(7,0),
CONSTRAINT REGION_METROPOLITANA_PK PRIMARY KEY (REGIONMETROPOLITANA_ID)
ENABLE)';
exception when table_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PARADA ADD (REGIONMETROPOLITANA_ID NUMBER(7,0))';
exception when column_exists then null;
end;