玩转oracle 11g(14):命令学习2
生活随笔
收集整理的這篇文章主要介紹了
玩转oracle 11g(14):命令学习2
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
6繼續玩,改變查詢結果列名
select name as xm,birthday as workday from student;--修改列名name為xm,birthday為workday
select * from student;
7 select xh||sex from student--將選擇的字段豎行排列
8 select name,sal,
case when sal<=10000 then 'underpaid'
???? when sal>=30000 then 'overpaid'
?????? else 'ok'
????? end as status
????? from student--當大于30000,輸出薪酬過高,小于10000輸出過低,其他正常
10 select*from student where rownum<=5;--限制出現行數為五行?
總結
以上是生活随笔為你收集整理的玩转oracle 11g(14):命令学习2的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 所有Windows原版系统的下载地址
- 下一篇: FastJson最新.jar下载