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

相关文章
相关标签/搜索