mysql平常總結

mysql中count(*)與count(column_name)的區別:mysql

count(*)不忽略null,count(column_name)忽略null值!sql

還有其餘聚合函數avg(),max()等函數

mysql 5.5版本3200萬數據在加索引 僅需4分鐘
索引

alter table mid_message add key(staff_id);
Query OK, 0 rows affected (3 min 42.12 sec)
Records: 0  Duplicates: 0  Warnings: 0table

相關文章
相關標籤/搜索