Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/05/2012, 08:06
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Duplicar Tabla

Con un poco de PL lo puedes lograr

Me imagino algo así:

Código SQL:
Ver original
  1. BEGIN
  2. FOR cur_tabla IN (SELECT username FROM dba_users) LOOP
  3. EXECUTE IMMEDIATE('create table '||cur_tabla.username||'.TE_TMVEMB_HISTORICO as select * from TE_TMVEMB');
  4. END LOOP;
  5. END;
  6. /

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming