首页 > 数据库技术 > 详细

Mysql表数据查找操作

时间:2019-09-01 11:52:47      阅读:48      评论:0      收藏:0      [点我收藏+]

1、简单查询

select * from user;

2、NULL查询

select * from user where hobby is NULL and age is not NULL;

3、in查询

select * from user where age in('22','23','24');

4、between and查询

select * from user where age between 21 and 55;

5、or查询

select * from user where age=22 or age=23

6、order by 查询

select * from user order by age asc; 升序
select * from user order by age desc; 降序

7、

Mysql表数据查找操作

原文:https://www.cnblogs.com/feiqiangsheng/p/11441740.html

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