码迷,mamicode.com
首页 > 其他好文 > 详细

简单查询(select)

时间:2016-12-28 02:19:35      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:mit   数字   语法   pre   pac   顺序   div   limit   lin   

 
在数据库中,字符串进行运算时,会将字符串内容转化为数字进行运算
查询语法: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
 

简单查询(select)

标签:mit   数字   语法   pre   pac   顺序   div   limit   lin   

原文地址:http://www.cnblogs.com/ljsbm325/p/6227915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!