標籤:Oracle/PLSQL: LPAD FunctionThis Oracle tutorial explains how to use the Oracle/PLSQL LPAD function with syntax and examples.DescriptionThe Oracle/PLSQL LPAD function pads the left-side of a string with a specific set of characters (when string1
標籤:usually we need to export the database tables to backup and others use. So we must know what to do export those data .just exmple when I export the oracle all database tables with dmp files.the method is following :#exp
標籤:http://www.cnblogs.com/chen1388/archive/2010/09/25/1834827.html oracle中 connect by prior 遞迴演算法 其基本文法是: select ... from tablename start with 條件1 connect by 條件2 where 條件3; 例: select * from table start
標籤:現在有兩個表,A表欄位AMOUNT為發票金額,B表欄位REV為收款金額,兩表通過欄位id關聯,需將A表的欄位AMOUNT與B表的欄位REV相減, 但是A表表示的發票可能對應多個B表的收款金額,如何將A表的AMOUNT與對應的B表的多個REV值的和相減,得到未收款金額 select a.id,(nvl(a.AMOUNT,0)-nvl(b.REV,0)) Result from a, (select b.id,
標籤:Case when 的用法,簡單Case函數 簡單CASE運算式,使用運算式確定傳回值. 文法: CASE search_expression WHEN expression1 THEN result1 WHEN expression2 THEN result2 ... WHEN expressionN THEN resultN ELSE default_result 搜尋CASE運算式,使用條件確定傳回值. 文法: CASE WHEN condition1 THEN