首页 > 其他 > 详细

简单查询(select)

时间:2016-12-28 02:19:29      阅读:162      评论:0      收藏:0      [点我收藏+]
 
在数据库中,字符串进行运算时,会将字符串内容转化为数字进行运算
查询语法: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)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!