摘要:
select * from emp;--查询comm为null的员工信息select * from emp where comm is null;--查询comm不为null的员工信息select * from emp where comm is not null; 阅读全文
posted @ 2015-04-24 12:12
爱白菜的小昆虫
阅读(291)
评论(0)
推荐(0)
摘要:
select * from emp;--输出工资在[1500,3000]范围之内的工资最高的前5个员工信息select top 5 * from emp where sal between 1500 and 3000 order by sal desc; 阅读全文
posted @ 2015-04-24 11:41
爱白菜的小昆虫
阅读(415)
评论(0)
推荐(0)
摘要:
select * from emp;--按照工资升序排序select * from emp order by sal;--按照工资降序排序select * from emp order by sal desc; 阅读全文
posted @ 2015-04-24 11:34
爱白菜的小昆虫
阅读(224)
评论(0)
推荐(0)
摘要:
select *from emp;--查询表前5行 员工信息select top 5 * from emp;--查询表前15%行的员工信息select top 15 percent * from emp; 阅读全文
posted @ 2015-04-24 00:14
爱白菜的小昆虫
阅读(348)
评论(0)
推荐(0)
浙公网安备 33010602011771号