La necessità è di chiedere quanti record vengono estratti in base ad una query. Da qualche parte avevo letto che fare count(*) è più veloce che non count(id).
es:
1) select count(*) as totale from tabella where condizione
1) select count(id) as totale from tabella where condizione
dove id ovviamente è un campo numerico che fa da chiave primaria.
Risulta anche a voi questo?

Rispondi quotando

