21 lines
665 B
SQL
21 lines
665 B
SQL
declare
|
|
object_exists exception;
|
|
pragma exception_init (object_exists , -00955);
|
|
begin
|
|
execute immediate 'CREATE TABLE GRUPO_CONTRATO (
|
|
"GRUPOCONTRATO_ID" NUMBER(7,0) PRIMARY KEY,
|
|
"NOMEGRUPOCONTRATO" VARCHAR2(255) NULL,
|
|
"USUARIO_ID" NUMBER(7,0),
|
|
"ACTIVO" NUMBER(1,0),
|
|
"FECMODIF" DATE
|
|
)';
|
|
exception when object_exists then null;
|
|
end;
|
|
/
|
|
declare
|
|
object_exists exception;
|
|
pragma exception_init (object_exists , -00955);
|
|
begin
|
|
execute immediate 'CREATE SEQUENCE "GRUPO_CONTRATO_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
|
|
exception when object_exists then null;
|
|
end; |