一般建立directory都是為了用資料泵匯入/匯出資料用,其實directory還有很多別的用處,本文不做闡述1、建立directory的文法CREATE [OR REPLACE] DIRECTORY directory AS 'pathname';例如:create or replace directory dump_dir as 'D:\dump\dir'這樣把目錄d:\dump\dir設定成dump_dir代表的directory2、查詢有哪些directoryselect *
本文轉載自: http://blog.csdn.net/mantisxf/article/details/1695441僅供個人學習提高使用。 Oracle 文法之 OVER (PARTITION BY ..)select * from test資料:A B C 1 1 1 1 2 2 1 3 3 2 2 5 3 4 6 ---將B列值相同的對應的C 列值加總select a,b,c, SUM(C) OVER (PARTITION BY B) C_Sumfrom testA B C
Oracle number datatype 文法:NUMBER[(precision [, scale])] 簡稱:precision --> p scale --> s NUMBER(p, s) 範圍: 1 <= p <=38, -84 <= s <= 127 儲存資料範圍:-1.0e-130 <= number value &
An expression list is a combination of other expressions. Expression lists can appear in comparison and membership conditions and in GROUP BY clauses of queries and subqueries.Comparison and membership conditions appear in the conditions of WHERE
CommentsYou can associate comments with SQL statements and schema objects.Comments Within SQL StatementsComments within SQL statements do not affect the statement execution, but they may make your application easier for you to read and maintain. You
declare cursor o isselect distinct to_char(report_date,'yyyymmdd') report_date from My_test_DAY_REPORT where report_date >=to_date(20130501,'yyyymmdd') order by 1; riqi o%rowtype;begin open o; loop fetch o into riqi; exit when o%notfound;