Ver Mensaje Individual
  #11  
Antiguo 01-02-2008
[egostar] egostar is offline
Registrado
 
Registrado: feb 2006
Posts: 6.557
Reputación: 25
egostar Va camino a la fama
A ver, prueba esto amigo D&W

Código SQL [-]
Insert into DetallesTable (PADRE, TIPO, CODIGO, DESCRIPCION)
VALUES :CODIGO_NUEVOPADRE, 
  (Select Tipo from DetallesTable Where PADRE = :CODIGO_PADREORIGINAL), 
  (Select Codigo from DetallesTable Where PADRE = :CODIGO_PADREORIGINAL),
  (Select Descripcion from DetallesTable Where PADRE = :CODIGO_PADREORIGINAL)

Salud OS

Edito: Vaya, pues ya tienes la solución, bien por esa keyboy
__________________
"La forma de empezar es dejar de hablar y empezar a hacerlo." - Walt Disney

Última edición por egostar fecha: 01-02-2008 a las 21:23:03.
Responder Con Cita