[Db] Mysql e Copying to tmp table

Francesco F franco a inpe.unipi.it
Ven 20 Lug 2007 15:52:04 CEST


On 17/07/2007 11.24, Cesare D'Amico wrote:
> La relativa EXPLAIN che ti dice?
> 

id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra

1	SIMPLE	FCARTELL	ref	anno	anno	4	const	2020	Using where; Using 
temporary; Using filesort

1	SIMPLE	prestazioni	ref	codpaziente,data,codpaziente_2	codpaziente	7 
FCARTELL.codpaziente	40	

1	SIMPLE	DIAGNOSI	ref	codpaziente	codpaziente	7	FCARTELL.codpaziente	2	

1	SIMPLE	INTERVENTI	ref	codpaziente,codpaziente_2	codpaziente_2	7 
FCARTELL.codpaziente	4	Using index

1	SIMPLE	tbdiagnosi	ref	codice	codice	6	DIAGNOSI.codice	2	Using index

1	SIMPLE	tbinterventi	ref	codice	codice	7	INTERVENTI.codice	2	Using index

1	SIMPLE	tbpersonale	eq_ref	PRIMARY	PRIMARY	4	prestazioni.pers_stampa	1 
Using index

1	SIMPLE	FMEDICI	eq_ref	PRIMARY	PRIMARY	4	FCARTELL.medico_accettante	1 
Using index

E' praticamente illeggibile :-)

	Francesco


Maggiori informazioni sulla lista Db