The Method of Count() in MySQL

----   select count (*) from tableName;
This is the optimal choice when you face Mass Data;


----   select cout(*) from tableName where column = 'value';
This method is  just so-so so-so. Its efficiency is low;
And the bad method is :


----   select count (column) from tableName;
We should try not to contact this method;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章