1.区别在于count(字段)不会算null,cout(*)会计算null。
2.mysql5.7.18version之后,计算count(*)时候会优先走二级索引,因为二级索引的树更小。
TRANSLATE with x English TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back 标签:count,TRANSLATE,区别,location,&&,English,document From: https://www.cnblogs.com/andrewlovemeimei/p/16826274.html