mysql------ group by語句

http://www.javashuo.com/article/p-ocugbwsp-dm.html group by 語句的執行過程分兩步,第一步按照group by 後面的分組字段進行分組,然後取每組的第一條記錄進行組合做爲結果集。 如:表 表中數據如下:     (1、)select * from repeat_user group by user_id結果爲: 因爲分組後是得到兩組,use
相關文章
相關標籤/搜索