码迷,mamicode.com
首页 > 数据库 > 详细

Mysql查询语句

时间:2019-05-22 17:24:13      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:sele   from   用法   参数   desc   sql查询语句   sql查询   mys   select   

查询语句格式:

select <字段> from <表>;

where---条件用法,当查询某条语句做限定的时候,需要用到。

select <字段> from <表> where <参数> 大于 <数值>;

select <字段> from <表> where <参数> 小于 <数值>;

 

过滤条件:

1.order by

  排序

2.desc

  倒序

3.between and

  在范围内

4.or

  或条件

 

Mysql查询语句

标签:sele   from   用法   参数   desc   sql查询语句   sql查询   mys   select   

原文地址:https://www.cnblogs.com/jason-songy/p/10907033.html

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