比较运算 > < =  !=  <>   <=  >= 
逻辑运算  and  or  not
范围查询  in  
模糊查询  like
                                                                                                
select distinct age from classes;                                 将classes表格里age去重                          
select * from classes where id <= 3;                               打印classes表格里id<=3的数据  (<>、!=)除了整形还可以用于datetime                       
select * from classes where num is(not) null;                   打印classes表格里num栏是(否)为null       is 和 not 只能用来判断null                        
select * from student where add_time between '2018-05-08' and '2018-05-10 09:00:00';        打印student表格里add_time栏里时间在两者之间的数据,between and相当于>=、<=可作用于时间和整形                               
select name from student where id > 1 and id < 3;        打印student表格里id>1并<3的name栏   and or not 逻辑运算符                             
 select * from student where name like '小%';             模糊查找 like 打印student表格里姓名栏(字段)里以'小'开头的数据 
select * from student where name like '%张%';                     
select * from student where name like '_明';                 占位匹配  _  一个下划线代表一个字符                            
 select * from student where id (not) in (1,2,3);               打印student表格里id是(否)在(1,2,3)里的数据,是否在范围内                             
 

最新文章

  1. scheduleInRunLoop作用
  2. document.body.scrollTop用法
  3. Mac Pro Office Word 2011 个性化设置
  4. 批量解密SQLSERVER数据库中的各种对象的工具dbForge SQL Decryptor2.1.11
  5. C++编译错误syntax error : identifier &#39;THIS_FILE&#39; 解决方法
  6. POJ 1300 Door Man(欧拉回路的判定)
  7. WCF常见异常-The maximum string content length quota (8192) has been exceeded while reading XML data
  8. 线程2 NSOperation 抽像类的使用
  9. 【HTML】Beginner5:List
  10. Android性能分析工具介绍
  11. 高性能JSON库---FastJson(阿里巴巴)
  12. Mysql内置的profiling性能分析工具
  13. Ubuntu 安装 Mysql 5.6 数据库
  14. Unique Morse Code Words
  15. 第9月第26天 pairs和ipairs cocos2dx 动画
  16. curl dns缓存设置
  17. python笔记02:列表与元素
  18. 手把手教你写一个java的orm(完)
  19. 解题:USACO12FEB Nearby Cows
  20. Resin任意文件读取漏洞

热门文章

  1. 安卓Recycleview简单的网格布局-初学者的关键点
  2. Linus Torvalds正式宣布Linux Kernel 5.1RC2 发布,相当正常
  3. 51nod 1206:Picture 求覆盖周长
  4. 端口通不通 telnet wget ssh
  5. android导入项目build错误
  6. 自己安装windows版本的Flink
  7. SQL 、LINQ日前比较
  8. 了解facade设计模式
  9. python画一只佩奇
  10. 51nod 1430:奇偶游戏 博弈