查询两个数值之间内容
1.between …and…查询两者之间的值
例如查某一段工资内数值内容
select * from emp where sal between ## (某数值)and ###(某数值);
2.-- 空值查询
– 查询mgr为空的记录
select * from emp where mgr is null;
查询comm不为空的记录
select * from emp where comm is not null;
3.模糊查询: select 字段1[,字段2,…] from 表名 where 字段
原创
2021-01-15 13:25:56 ·
1214 阅读 ·
0 评论