`
daxiong921
  • 浏览: 45700 次
  • 性别: Icon_minigender_1
  • 来自: 龙岩
社区版块
存档分类
最新评论

oracle第二次学习笔记(第二天)

阅读更多
1
oracle 的 不等于 !=,用 <> 符号

2
oracle对数据的升序降序,使用 order by
select ename,sal,deptno from emp 
where deptno <> 10 
order by deptno asc,sal desc;


3
函数 to_char        处理字符串
     to_date        处理日期
     to_number      处理数字
     nvl            将空值转换为指定值
select ename,sal*12 + nvl(comm,0) from emp;

通过使用 nvl 函数,将 comm中含有null值的转换成 0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics