摘要:
count计数行数sum 求和 avg 求平均值 min最小值 max最大值例:elect avg(salary), avg(nvl(commission_pct, 0)) from employees; //求所有人的提成平均值 包括没有提成的 nvl:定义空值只有count(*) 会把空值统计进 阅读全文
posted @ 2017-07-30 14:41
罗汉泽
阅读(826)
评论(0)
推荐(0)
摘要:
排序 order by 列的名字 默认是从小到大例:select last_name,salary from employees order by salary;order by 列 desc 从大到小排序例:select last_name,salary from employees order 阅读全文
posted @ 2017-07-30 14:40
罗汉泽
阅读(125)
评论(0)
推荐(0)

浙公网安备 33010602011771号