從在Linux上安裝Oracle到投入使用才幾天,碰到的問題就成百上千的。在使用用戶端串連遠程Oracle資料庫伺服器時,出現了listener refused the connection with the following error ora-12519 Listener refused the connection with the following error:ORA-12519, TNS:no appropriate service handler foundThe
表資料;MENU_IDIS_TREE0001100021010120102 0103 0201502026 --------------使用decode函數select b.menu_id,decode(b.is_tree,'1','1vv','2','2vv',null,'isnullvalue','defaultvaluehehe') tree from menutree b--------------使用case when then else達到相同效果select
最近過程比較忙,沒日沒夜的,好久沒有時間寫部落格了,今天一個特別詭異,特別蛋疼的問題糾結了好久,不得不寫個部落格了。select * from wlbtest3where (sname, sage) not in (select user_name,user_age from wlbtest4)select * from wlbtest3where (sname||sage) not in (select user_name||user_age from
create table t8(grade number(8));insert into t8 values(100);insert into t8 values(45);insert into t8 values(65);insert into t8 values(85);insert into t8 values(90);insert into t8 values(60);insert into t8 values(13);commit;select
SQL> select dbms_metadata.get_ddl('PROCEDURE','PRO2','SCOTT') text from dual;TEXT---------------------------------------- CREATE OR REPLACE PROCEDURE "SCOTT"."PRO2"isbegindbms_output.put_line('wangpeng up');end;SQL> select
前陣子看到一篇關於DELETE操作的具體的流程,今天無意間又看到一個UPDATE的操作流程,挺有趣的,轉過來學習學習!================================================================================1,使用者提交一個update語句2,server process檢查記憶體緩衝 i 如果沒有有效記憶體空間,啟動DBWR,將緩衝中未寫入磁碟的髒資料區塊寫入 ii
資料庫中儲存了海量的資料,當查詢時使用like,速度明顯變慢。我在做項目時,發現可以使用instr函數來取代like的作用。1.%a%方式:select * from pub_yh_bm twhere instr(t.chr_bmdm,'2')>0等份於:select * from pub_yh_bm twhere t.chr_bmdm like '%2%'2.%a方式:select * from pub_yh_bm twhere
最近正好要寫圖片進入oracle的BLOB發現一些問題所以找了下網路,有兩個寫的很好.不過一個是SQL SERVER的BLOB,另外一個是oracle不過是用oracleclient的. How to Pass a BLOB as parameter to an Oracle package by using the .NET Managed Provider for Oracle 使用ADO.NET 以及C#處理BLOB 資料關於這個問題,是關於資料集類型的問題.我現在修改BLOB
1. 複製表結構及其資料:create table table_name_new as select * from table_name_old(整個表資料和結構)create table table_name_new(column1,column2...) as select column1,column2...from table _name_old(表的部分列) 2. 只複製表結構:create table table_name_new as select * from