下面這個圖,是一個數據表 當咱們要搜索note_id > 25的記錄 和<25的記錄個數時,用下面的語句blog
select count(id),note_id>25 as more from trs group by note_id>25 ,結果以下截圖select
有時間繼續瞭解它的用法搜索