输入banner图图片脚本导航/分类

mysql select

(1)条件查询:

  where 条件 

  a.条件表达式表达式为真,则取出该行

  b.比较运算符 =,!= , <>(不等于) , <= , >=

  c.like,not like ,in ,not in , between,and 

    字符匹配:‘%‘匹配多个字符,‘_‘匹配任意单个字符

  d. is null,is not null

(2) 分组:

  group by 

  一般要配合5个聚合函数使用:max,min,sum,avg,count

(3) 筛选:

  having

(4) 排序:

  order by 

(5) 限制:

  limit

mysql select

标签: