wilian 2017-03-10 19:04:33 +00:00
parent 12770868c9
commit 35e047fc9d
3 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE TABLE OPERADORA_CARTAO (
OPERADORACARTAO_ID NUMBER(7) NOT NULL,
DESCOPERADORACARTAO VARCHAR2(50) NULL,
ACTIVO NUMBER(1) NULL,
USUARIO_ID NUMBER(7) NULL,
FECMODIF DATE NULL,
PRIMARY KEY (OPERADORACARTAO_ID)
)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE OPERADORA_CARTAO_SEQ INCREMENT BY 1 MAXVALUE 9999999 MINVALUE 1 CACHE 20';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE CAJA_TARJETA ADD DESCOPERADORACARTAO VARCHAR2(50)';
exception when object_exists then null;
end;