Technorati 標籤: 在PL/SQL中建立表之前判斷表是否存在 如果有就刪除表的執行語句的書寫 由於才開始使用PL/SQL來進行Oracle的用戶端操作,由於以前使用sql 2005 來執行“建立表之前判斷表是否存在 如果有就刪除表,再建立”的動作陳述式非常簡單:1: if exists (2: select * from sysobjects 3: where id = OBJECT_ID('STUDENTS]') and OBJECTPROPERTY(id,
*執行一條insert語句並傳參數*/create or replace procedure p_test2(i in number) asbegininsert into t values (i,'x'||to_char(i));commit;end;/<%@ page language="java" contentType="text/html;charset=gb2312"%><%@page import="java.sql.*"%><html><
由於串連查詢時可能會出現一條對應多條的情況:如A表與B表串連查詢,A.id有可能對應B.id多個結果,如果這樣寫:update ( select A.id as var,B.id as value from A,B where A.key = B.nokey)set var=value;如果在B表的nokey欄位上建一個唯一索引,我猜想應該能行(有時間下去試試)不多說了,這裡給我實際工作中用到的一個例子: update (select /*+
Linux下oracle 11g的安裝(PS: 討厭的PS,由於從word文檔中copy過來的,很多都看不到了,將文檔地址分享給大家:http://download.csdn.net/detail/lzc3144/4265451)系統要求伺服器配置要求至少1024MB記憶體空間,oracle軟體需要4.0GB以上磁碟空間(oracle 11g要求的磁碟空間為3.95GB),要求linux OS Kernel Version
The Roundtable Summations: 11 Views on Java's Biggest ChallengesIndustry technologists set the agenda for Java directions in the year ahead by Dan Rub http://www.ftponline.com/javapro/2003_06/online/roundtable_03_06_25/ At the close of the 2003 Java
ORACLE資料庫檔案損壞已解決。出現的問題是“Error:ORA-01033:ORACLE initialization or shutdown in progress”,後來從網上找了一些資料,最後加上自己的實踐終於解決了,不過有個問題,就是資料庫檔案好像都不能用了。解決方案在DOS環境下sqlplus /NOLOGSQL>connect sys/sys as sysdbaSQL>shutdown normalSQL>startup mountSQL>alter
為了確定資料表空間中包含那些內容,運行:select owner,segment_name,segment_type from dba_segments where tablespace_name='<name of tablespace>' 查詢資料表空間包含多少資料檔案。select file_name, tablespace_name from dba_data_files where tablespace_name ='<name of tablespace>
方括弧表達示方括號運算式描述[[:alnum:]]字母和數字混合的字元[[:alpha:]]字母字元[[:cntrl:]]控制字元[[:digit:]]數字字元[[:graph:]]映像字元[[:lower:]]小寫字母字元[[:print:]]列印字元[[:punct:]]標點符號字元[[:space:]]空白字元[[:upper:]]大寫字母字元[[:xdigit:]]十六進位數字字元 為了便於記憶:分別做下英文的解釋:alnum is short for alphabet