Ver Mensaje Individual
  #10 (permalink)  
Antiguo 02/12/2015, 10:14
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Cantidad de registro en una búsqueda mysql

Eso lo haces con joins algo asi:

Código MySQL:
Ver original
  1. Insert into destino
  2. Select t1.producto,t2.id, t3.id from origen as t1
  3. Inner join tabla1 as t2 on (t1.descripcion=t2.descripcion)
  4. Inner join tabla2 as t3 on (t1.descripcion2=t3.descripcion)
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me