Cita:
Iniciado por Ronruby
Ahora hagamos lo siguiente ... Pon EXPLAIN al principio de tu consulta de modo que quede:
EXPLAIN SELECT .......
Pon los resultados aqui ;)
La consulta se resuelve en segundos... pero no trae los datos que nos interesan...
en PHPmyAdmin solo trae 3 lineas
Código HTML:
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE concuota_temp ALL NULL NULL NULL NULL 13334 Using where; Using temporary; Using filesort
1 SIMPLE compraso_temp ALL NULL NULL NULL NULL 52187 Using where; Using join buffer
1 SIMPLE proveedor_temp eq_ref PRIMARY PRIMARY 4 db1.compraso_temp.proveedor 1
y en el script error, no definidas las variables(todas)....
:(