in里不是区间

# 查询是800或5000的工资的人
select * from emp where SAL in(800,5000);

 

# 查询薪资在800到1000之间的人
select * from emp where SAL between 800 and 5000;

 

posted @ 2023-10-17 17:03  胖豆芽  阅读(5)  评论(0编辑  收藏  举报