Mysql中的count(*)的誤解

有時候總認爲count(*)會比count(1)或者count(column name)慢,其實這裏面仍是有個小坑的。讓咱們用一個例子來了解一下它們的區別:mysql ---初始化語句 create table test2 (id BIGINT PRIMARY key, name varchar(24))ENGINE=INNODB; insert into test2(id,name)value
相關文章
相關標籤/搜索