Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/02/2010, 08:48
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: INSERT con SELECT y otros datos

Código SQL:
Ver original
  1. INSERT INTO vehiculos
  2. (codigo,medida,profundidad, presion, posicion, vehiculo)
  3. SELECT codigo,medida,profundidad,'variable_de_presion',
  4. 'variable_de_posicion','variable_de_vehiculo'
  5. FROM bodega WHERE codigo=1000;

así?

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