表結構如下 欄位類型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
作業系統:windows xpOracle 10g 10.2記憶體:512M資料庫全裝: 必須要用CTXSYS使用者.以下是建立最簡單支援英文的全文檢索索引--刪除text使用者Drop User text;-- 建立text使用者create user text identified by text default tablespace USERS temporary tablespace TEMP;-- Grant/Revoke role privileges grant
在操作csw表時 發現很有用的xml查詢sql備忘如下:select * from MDSYS.CSW_RT_6$ t where existsnode(t.datacol,'//*[geoglobe:parentId = "-1"]','xmlns:geoglobe="http://www.geostar.com.cn/geoglobe"') > 0 order by RECORDID;select
昨天突然發現,我安裝的Oracle伺服器沒有scott使用者,沒辦法只能手動的來匯入了。具體方法:首先 用system使用者登陸。匯入scott.sql指令碼(可以在oracle的安裝目錄的尋找),例如我原生路徑,匯入就可以寫成:@D:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\ADMIN\scott.sql 其次 輸入:alter user scott identified by tiger; 修改scott密碼alter user
Oracle中包相當於命名空間,建立包分兩步: 1.建立包頭 2.建立包體包體和包頭建立要分開,而且要再sql window種執行,否則會出現錯誤:Error: PLS-00103: Encountered the symbol "CREATE"。下面是執行個體:SQL> create or replace package MyPackage as 2 type MyCursor is ref cursor; 3 procedure SelectBase(pageIndex
什麼是savepoint?Use the SAVEPOINT statement to identify a point in a transaction to which you can later roll back.例如: SQL> SELECT * FROM SCOTT.DEPT ;DEPTNO DNAME LOC------ -------------- ------------- 10 ACCOUNTING NEW YORK 20