Mysql基础(七)DQL之select 语句(二)

一  select 语句

WHERE子句后面'跟着'的是'一个或多个条件',用于指定需要'检索的行'

COUNT(): 多少'条'数据

where 1=1 和 count(1) 与 count(*)

count(1)、count(*)和count(指定字段)之间的区别

①  order by 排序

mysql 之数据排序扩展

1、使用 'order by' 语句来实现

你可能感兴趣的:(mysql,基础,mysql,select,having,group,by)