26 lines
642 B
SQL
26 lines
642 B
SQL
declare
|
|
table_exists exception;
|
|
pragma exception_init (table_exists , -00955);
|
|
begin
|
|
execute immediate
|
|
'CREATE TABLE RECUPERAR_SENHA (
|
|
RECUPERARSENHA_ID NUMBER(7) NOT NULL,
|
|
PARAM VARCHAR2(100),
|
|
ACTIVO NUMBER(1),
|
|
FECMODIF DATE,
|
|
USUARIO_ID NUMBER(7),
|
|
PRIMARY KEY ( RECUPERARSENHA_ID )
|
|
)';
|
|
|
|
exception when table_exists then null;
|
|
end;
|
|
/
|
|
declare
|
|
object_exists exception;
|
|
pragma exception_init (object_exists , -00955);
|
|
begin
|
|
execute immediate 'CREATE SEQUENCE "RECUPERARSENHA_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
|
exception when object_exists then null;
|
|
end;
|
|
|