Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/12/2007, 02:45
guillermoariast
 
Fecha de Ingreso: marzo-2007
Mensajes: 6
Antigüedad: 17 años, 1 mes
Puntos: 0
Re: Funcion que crea una tabla temporal

Hola, yo uso postgre 8.3 y no tengo prob con tablas temporales.

ejem:

sql := 'create local temp table temp_cptcalc as select * from '||$1||'.cptcalc where gc_id='''||$2||''' and perio_codigo=''0'' ';
execute sql;
drop table temp_cptcalc;