
5篇文章 · 307字 · 1人關注
select user_id , count(*) AS count from echo_channel_follow group by use...
reset query cache
多表查詢鸳君,里面的可以用到索引挣磨,外面的就用不到了
1栈暇、使用like查詢唉俗,%不能在第一個才能被識別陌凳。 1、如果mysql估計使用索引比全表掃描更慢须肆,則不使用索引匿乃,eg: uid均勻分布1-100,...
創(chuàng)建一個表:create table wang ( id int auto_increment primary key, name varcha...