victorlopes
IS-IT--Management
tanks for the help! I need to create a function that makes the following.
It compares 2 equal tables in different database. (the database has equal structures but different register.) I need to run the function and it rewrites the table “estados” and copies everything from “estados” do table “LOG”.
SQL> desc estado;
Nome Nulo? Tipo
----------------------------------------- -------- ------------
id_erro NOT NULL NUMBER(9)
componente NOT NULL VARCHAR2(255
tipo_erro NOT NULL VARCHAR2(255
data NOT NULL NUMBER(38)
estado NOT NULL NUMBER(1)
SQL> desc log;
Nome Nulo? Tipo
----------------------------------------- -------- ------------
id_erro NOT NULL NUMBER(9)
id_log NOT NULL NUMBER(9)
dataInicio NOT NULL NUMBER(38)
dataFim NOT NULL NUMBER(38)
componente NOT NULL VARCHAR2(255
eventoID NOT NULL NUMBER(38)
estado NOT NULL VARCHAR2(255
texto1 VARCHAR2(255
texto2 VARCHAR2(255
valor1 NOT NULL NUMBER(38)
Tanks and regards
Victor Lopes
It compares 2 equal tables in different database. (the database has equal structures but different register.) I need to run the function and it rewrites the table “estados” and copies everything from “estados” do table “LOG”.
SQL> desc estado;
Nome Nulo? Tipo
----------------------------------------- -------- ------------
id_erro NOT NULL NUMBER(9)
componente NOT NULL VARCHAR2(255
tipo_erro NOT NULL VARCHAR2(255
data NOT NULL NUMBER(38)
estado NOT NULL NUMBER(1)
SQL> desc log;
Nome Nulo? Tipo
----------------------------------------- -------- ------------
id_erro NOT NULL NUMBER(9)
id_log NOT NULL NUMBER(9)
dataInicio NOT NULL NUMBER(38)
dataFim NOT NULL NUMBER(38)
componente NOT NULL VARCHAR2(255
eventoID NOT NULL NUMBER(38)
estado NOT NULL VARCHAR2(255
texto1 VARCHAR2(255
texto2 VARCHAR2(255
valor1 NOT NULL NUMBER(38)
Tanks and regards
Victor Lopes