今天在oracle的SQL plus 中執行了刪除和查詢操作,然後在PL/SQL中也執行查詢操作,語句一樣,結果卻不一樣,讓我大感鬱悶,後來才突然想到可能是兩邊資料不一致造成的,但是為什麼不一致呢,就是沒用commit,在網上查了一下,大概是這樣說的:DML語言,比如update,delete,insert等修改表中資料的需要commit;DDL語言,比如create,drop等改變表結構的,就不需要寫commit(因為內部隱藏了commit);DDL 資料定義語言 (Data
The following section describes the syntax that can be used to alter XML DB configuration information from within SQL*Plus. Ensure that you are logged into the database from a DBA account. In the following example, the default HTTP/WebDAV and FTP
DROP USER OBS_ZHUJP CASCADE;CREATE USER OBS_ZHUJP PROFILE DEFAULT IDENTIFIED BY OBS_ZHUJP DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;GRANT DELETE ANY TABLE TO OBS_ZHUJP;GRANT DROP ANY TABLE TO OBS_ZHUJP;GRANT INSERT ANY TABLE
主要分兩個平台來說1 在安裝了ORACLE 伺服器上 配置環境[ba@nod1-ba lib]$ cat ~/.bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHunset
Oracle的sessions和processes的關係是 sessions=1.1*processes + 5 -----實驗部分----Microsoft Windows [版本 5.2.3790](C) 著作權 1985-2003 Microsoft Corp.C:\Documents and Settings\Administrator>sqlplus /nologSQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 18 22:4
ORACLE:DBMS_METADATA.GET_DDL的用法dbms_metadata包中的get_ddl函數--GET_DDL: Return the metadata for a single object as DDL.-- This inte***ce is meant for casual browsing (e.g., from SQLPlus)-- vs. the programmatic OPEN / FETCH / CLOSE inte***ces above.--
基本命令:GROUP BY CUBE(欄位列表);CUBE命令根據欄位列表,產生不同的排列組合,並根據每一種組合結果,產生統計匯總。比如:GROUP BY CUBE( city, job, age );排列組合的結果如示:1)city,job,age2)city, job3)city4)job, age 5)age 6)city , age 7) job 所以就有7種排列組合。2)根據每一種排列組合,產生不同的統計匯總,如下: 1) group by cube(city, job ,age );