基本sql语句

上一篇 / 下一篇  2014-06-30 15:19:41 / 个人分类:数据库

1.distinct(过滤掉相同的)
select distinct deptno from emp;
2.<>(不等于)
select * from emp where deptno <> 10;
3.between(在。。。之间)
select * from emp where sal between 800 and 1500
4.null(没有)
select ename from emp where comm is null;(无奖金)
5.order by
desc:降序  asc:升序
6.group by

TAG:

 

评分:0

我来说两句

Open Toolbar