標籤:oracle comment 使用oracle comment語句可以給表、欄位、視圖等對象添加備忘資訊。大致文法為:comment on TABLE table_name IS ‘備忘內容‘;許可權要求:預設情況下使用者只能給屬於自己的對象添加註釋。如果要想給其他使用者物件添加註釋需要擁有許可權:COMMENT ANY TABLE相關資料欄位視圖:USER_TAB_COMMENTSDBA_TAB_COMMENTSALL_
標籤:最近在使用oracle,經常要匯入匯出資料,命令很簡單,卻經常忘記,所以記下來。。drop user yfplss cascade;--登入system使用者刪除已存在的使用者名稱,該使用者下的所有東西都被刪掉--建立資料表空間create tablespace yfplss loggingdatafile ‘D:/app/Administrator/oradata/oral/yfplss.dbf‘--存放資料表空間的地址size 100m--大小autoextend on
標籤:1.rownum:rownum是一個偽列,需要在資料取出來後,rownum才會有值,因此在分頁尋找時,需要進行巢狀查詢。select sal,ename from (select rownum as rn,sal,ename from (select sal,ename from emp where sal is not null order by sal) x where rownum<10)where rn>6採用分析函數也是可以實現一次嵌套select rn,
標籤:IntroductionConfiguring HugePagesForce Oracle to use HugePages (USE_LARGE_PAGES)Disabling Transparent HugePages (RHEL6/OL6)Configuring 1G HugepagesizeIntroductionFor large SGA sizes, HugePages can give substantial benefits in virtual memory
標籤:--根據每個部門來統計部門工資總和select deptid, sum(sal) 工資合計 from emp group by deptid; --根據每個部門來統計部門工資總和select deptid, 工資合計, sum(工資合計) over() as 總合計 from (select deptid, sum(sal) 工資合計 from emp group by deptid) x; select
標籤:oracle sql日期比較:在今天之前:select * from up_date where update < to_date(‘2007-09-07 00:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘)select * from up_date where update <= to_date(‘20
標籤:database oracle --資料庫名的查看 select name from v$database;650) this.width=650;" src="%5C" alt="spacer.gif\\"\"" />--執行個體名的查看 show parameter instance_name;650)