简单查询(select)

 
在数据库中,字符串进行运算时,会将字符串内容转化为数字进行运算
查询语法:select 列
    from 表
    where 条件
    order by 排序     asc:升序   desc:降序
    limit  n,m
 
AS  改名关键字
对空的比较   is  ,not is
模糊查询     like (像) '%xxx%'     百分号匹配任意字符
distinct    去除重复
 
运行顺序:from     where      select        order by      limit n,m
 
posted @ 2016-12-27 23:35  姜博儿  阅读(181)  评论(0编辑  收藏  举报