Oracle - tablas temporales

 
Vista:

tablas temporales

Publicado por SERGIO FLORES (3 intervenciones) el 08/02/2003 00:31:44
tengo que agregar un registro a una tabla con ciertos datos modificados para no producir duplicidad, en INFORMIX yo lo realizo de la sgte. forma
select * from tabla where campo1 = datox into temp tmp_temporal with no log;
luego modifico los datos en la tabla temporal y las agrego a mi tabla original. EN ORACLE NO SE COMO HACERLO, NI SIQUIERA SE COMO PUEDO VER LA ESTRUCTURA DE LA TABLA PARA CREARLA IGUAL Y MAS RAPIDO.
NO SE SI ORACLE ME PERMITE TRABAJAR CON TABLAS TEMPORALES. PORQUE AUNQUE ESTOY BUSCANDO Y NO LO ENCUENTRO. REQUIERO DE VUESTRA AYUDA.

AGRADECIDO

SERGIO FLORES
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:tablas temporales

Publicado por Alberto Cayo H. (20 intervenciones) el 08/02/2003 03:30:23
Oracle si permite trabajar con tablas temporales, y se crean con el sgte formato

CREATE GLOBAL TEMPORARY TABLE TABLA_EJEMPLO
( CAMPO1 VARCHAR2(10),
CAMPO2 VARCHAR2(2),
CAMPO3 VARCHAR2(4),
CAMPO4 NUMBER(16,2)
)
ON COMMIT PRESERVE ROWS;

espero te sirva
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

RE:tablas temporales

Publicado por SERGIO (1 intervención) el 08/02/2003 04:56:01
HOLA !!

TENGO AUN UNA PREGUNTA :

COMO PUEDO CONSULTAR POR LA ESTRUCTURA DE UNA TABLA , DIRECCIONARLA Y ASI DEJARLA COMO UN ARCH,* SQL O SCRIPT , LO CUAL ME PERIMITIRA CREAR LA TABLA CON MAYOR RAPIDEZ.

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:tablas temporales

Publicado por AntonioMor (14 intervenciones) el 11/02/2003 17:42:45
En oracle puedes ver la estructura de la tabla con la siguiente instrucción:

ORA> desc nombre_tabla


Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar