標籤:使用過程----刪除TRUNCATE TABLE mlog$_xxx_lxz_tmp;DROP MATERIALIZED VIEW LOG ON xxx_lxz_tmp;drop materialized view mv_xxx_lxz_tmp ----原表建立增量重新整理日誌CREATE MATERIALIZED VIEW LOG ON xxx_lxz_tmp WITH PRIMARY KEY INCLUDING NEW VALUES;----建立物化視圖CREATE
標籤:快速使用Romanysoft LAB的技術實現 HTML 開發Mac OS App,並銷售到蘋果市集中。 《HTML開發Mac OS App 視頻教程》馬鈴薯網同步更新:http://www.tudou.com/plcover/VHNh6ZopQ4E/百度網盤同步:http://pan.baidu.com/s/1jG1Q58M分享 [中文紀錄片]互連網時代 http://pan.baidu.com/s/1qWkJfcS 官方QQ群:(
標籤:SQL Server關於分頁 SQL 的資料許多,有的使用預存程序,有的使用遊標。本人不喜歡使用遊標,我覺得它耗資、效率低;使用預存程序是個不錯的選擇,因為預存程序是顛末先行編譯的,執行效率高,也更靈活。先看看單條 SQL 陳述式的分頁 SQL 吧。方法1:適用於 SQL Server 2000/2005SELECT TOP 頁大小 * FROM table1 WHERE id NOT IN ( SELECT TOP 頁大小*(頁數-1) id FROM table1 ORDER BY
標籤:--、、、、、、、、、、、、、、常用的單行函數、、、、、、、、、、、、、、、、、、、、、、 ------------------- 常用的字元函數 ------------------------initcap(char):首字母大寫select initcap(‘hello‘) from dual--lower(char):轉換為小寫select lower(‘LOVEy‘) from dual--upper(char):轉換為大寫select
標籤:partition add split global local 生產庫中某些大表的分區異常,需要對現有表進行線上操作,以添加丟失分區,因為是生產庫,還是謹慎點好,今天有空,針對add&split分區對global&local索引的影響進行了測試,測試版本為oracle11.2.0.4,過程如下:首先,建立
標籤:有兩個簡單例子,以說明 “exists”和“in”的效率問題1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ; T1資料量小而T2資料量非常大時,T1<<T2 時,1) 的查詢效率高。2) select * from T1 where T1.a in (select T2.a
標籤:最近不忙,之前一直是用powerDesigner看錶結構,還沒自己匯入過,今天試試oracle 表匯入到powerDesigner 中步驟:1、File--->reverse Enginner ---> datebase 彈出new physical data model 視窗,DBMS選擇資料庫版本。2、彈出database reverse engineering options 視窗,選中usiong a data source
標籤:oracle order by null 排序 在Oracle中使用order by進行查詢排序時,如果排序欄位中有空值(null),排序結果可能會達不到我們想要的結果。如:select * from test order by age desc; 按照age欄位降序排序,結果如下:將sql語句改為select * from test order by
標籤:About Oracle Cluster RegistryOracle Cluster Registry (OCR) is a file that contains information about the cluster node list and instance-to-node mapping information. OCR also contains information about Oracle Clusterware resource profiles for