Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/03/2007, 08:58
hgt
 
Fecha de Ingreso: marzo-2007
Mensajes: 2
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: select con insert

A lo anterior solo tienes que agregar un

Into NombreTabla


Es decir

Select distinct t1.id as CampoId
into tablax
from tabla1 t1
where t1.id in (Select cod_id2 from tabla2)
or t1.id in (Select cod_id3 from tabla3)
or t1.id in (Select cod_id4 from tabla4)