Query data in the database

select * from table where the query group by group having query again field conditions order by sorting fields

Aggregation function to function, also known as Group: count (field) count (*) sum (field) sum (*) avg (mean field) max (field) min (field)

Guess you like

Origin www.cnblogs.com/god1/p/12050707.html