身為一個Oracle DBA,你必須知道什麼是Metalink.Metalink是Oracle的官方支援人員網站,其網址為: http://metalink.oracle.com.Oracle公司通過該網站來支援全球的客戶,據Oracle公司的統計資料,據說80%的技術問題都是通過Metalink網上解決的。Metalink的註冊並非免費。當你購買了Oracle公司的軟體以後,可以根據License向Oracle請求CSI(Customer Support
declare cnt number;begin ---查詢要建立的表是否存在 select count(*)into cnt from user_tables where table_name='ENTRY_MODIFYSTATUS'; ---如果存在則刪除該表 if cnt>0 then dbms_output.put_line('表存在不建立'); else dbms_output.put_line('表不存在');
表結構如下 欄位類型col1varchar2(64)col2long Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->--複製資料insert into mytable(col1,col2)select col1||'_copy',col2 from mytable where col1='11'--出現ORA-00997: 非法使用 LONG
Oracle Database Development (3). Introduce to Pro*C/C++ Precompiler OptionsVert MelonJun 7,20071.Preface Now we have already known about the Pro*C/C++ Development Environment in Windows or Linux, but it is not enough. Anyway, esaier said than done,
查詢 SELECT語句用於從資料庫中查詢資料,當在PL/SQL中使用SELECT語句時,要與INTO子句一起使用,查詢的傳回值被賦予INTO子句中的變數,變數的聲明是在DELCARE中。SELECT INTO文法如下: SELECT [DISTICT|ALL]{*|column[,column,...]} INTO (variable[,variable,...] |record) FROM
1. 調用包含out/ in out型別參數的預存程序預存程序:CREATE OR REPLACE PROCEDURE "SITE_EDITSITEDATAEXIST" (id_ number,name_ varchar2,httpRoot_ varchar2,flag out integer )//out 只具備輸出功能 in out 為輸入/輸出型astempNum integer;begin if tempNum > 0 then end
今天看了篇文章,被幾個地方轉載,但是效能不太好,因為不能評論,所以把最佳化思路寫在這裡。1.確定需求: 根據部門來分組,顯示各員工在部門裡按薪水排名名次.2.來建立執行個體資料:drop table if exists heyf_t10;create table heyf_t10 (empid int ,deptid int ,salary decimal(10,2) );insert into heyf_t10 values(1,10,5500.00),(2,10,4500.00),(3,20