摘要:
https://blog.csdn.net/zsj777/article/details/102549165 https://www.liangzl.com/get-article-detail-146070.html 阅读全文
摘要:
一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的假如表沒有主键(Primary key), 那么count(1)比count(*)快, 如果有主键的話,那主键作为count的条件时候count(主键)最快如果你的表只有一个字段的话那count(*)就是 阅读全文