freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

黑馬程序員c語言教程:oracle指令大全5篇可選-在線瀏覽

2024-10-19 05:17本頁面
  

【正文】 ct deptno, avg_sal, grade from(select deptno,avg(sal)avg_sal from emp group by deptno)t join salgrade on avg_sal between losal and hisal查看一下select * from v1查詢一下帶入viewselect dname from dept where deptno in(select deptno from(v1)where grade =(select min(grade)from v1))第二篇:黑馬程序員c語言教程:Oracle指令order by的用法員工信息按照姓名正序排列select * from emp order by ename asc。員工信息按照倒敘排列select * from emp order by ename desc。例如:員工信息按照部門正序排列,并且按照姓名倒敘排列select * from emp order by deptno asc,ename descfunction的用法把所有姓名變成小寫select lower(ename)from emp。求所有人名中包含39。的員工信息不區(qū)分大小寫select * from emp where lower(ename)like 39。截取子字符串,比如求Hello的一部分 select substr(39。,2,2)from dual。求Hello的一部分,并指明長度求ascii碼對應(yīng)的字符 select chr(65)from dual求字符對應(yīng)的ascii碼select ascii(39。)from dual四舍五入select round(,2)from dual select round(,1)from dual四舍五入小數(shù)點后面多少位四舍五入小數(shù)點前面多少位important!日期轉(zhuǎn)換函數(shù)將當前日期轉(zhuǎn)換成19810312 12:00:00這種形式的字符串select to_char(sysdate,39。)from dual。19810312 12:00:0039。YYYYMMDD HH24:MI:SS39。將每個人的薪水轉(zhuǎn)換成固定格式的字符串select to_char(sal,39。)from emp。$8,39。$999,999,39。當null參與計算時候,可以用nvl這個函數(shù)。求總的行數(shù)select count(*)from emp。也可以過濾掉重復(fù)的行之后統(tǒng)計行數(shù)select count(distinct deptno)from ;分部門統(tǒng)計最高薪水select deptno,max(sal)from emp where deptno is not null group by deptno也可以按照多個字段來分組統(tǒng)計,比如:分部門和崗位,統(tǒng)計最高薪水和行數(shù) select deptno,job,max(sal),count(*)from emp group by deptno,job重要:出現(xiàn)在select列表中的字段,如果沒有在組函數(shù)中,那么必須出現(xiàn)在group by 子句中。delete from emp where ename=39。 update emp set deptno=10 where deptno=99 select * from dept insert into dept(deptno,dname,loc)values(39。,39。,39。)。每個人的年薪select ename,sal*12 from emp。計算2*3的值(dual)select 2*3 from dual。得到當前時間select sysdate from dual可以給列起別名,比如求每個人的年薪select ename,sal*12 salperyear from emp。如果沒有內(nèi)容,則為空 select m from emp??梢詫⒍鄠€字符串拼在一起。sal39。如果字符串中有單引號,需要用另外一個單引號轉(zhuǎn)義,比如:這樣一個字符串: he39。39。s sal is39。distinct 關(guān)鍵詞的用法求有哪些個部門select distinct deptno from emp可以用來修飾多個字段。比如:求10這個部門的所有員工 select * from emp where deptno=20可以是字符串類型的等值判斷。KING39。比如:求薪水小于2000的員工信息 select * from emp where sal字符串也可以做不等值判斷,比如:求所有ename大于39。的員工信息。CBA39。求薪水在800和1500之間的員工信息select * from emp where sal =800 and sal select * from emp where sal between 800 and 1500這樣寫則不可以select * from emp where 800select * from emp where sal in(1500,800,2000,1500,1500,1500,1500)。KING39。SMITH39。AA39。235月8739。%E%39。_A%39。比如:求員工中包含特殊字符%的員工信息 select * from emp where ename like 39。 escape 39。null的用法求沒有年終獎的員工select * from emp where m is null求有年終獎的員工select * from emp where m is not null第四篇:黑馬程序員c語言教程:Oracle指令什么時候用外連接呢?比如領(lǐng)導(dǎo)向你要所有學(xué)生的列表,順便把所屬的班級也列出來,就需要外連接在Where語句中使用子查詢雇員中最高薪水的人員名稱1,先求出最高薪水2,再求雇員中最高薪水的人員名稱select ename from emp where sal=(select max(sal)
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1