1、在報表頁面配置相應的位置加入文字框,一般為Download 右鍵用PL/SQL編輯器編寫成超連結,加入以下內容: 複製代碼 代碼如下: function B_13FormatTrigger return boolean is begin IF upper(:P_ACTION) != 'DOWNLOAD' THEN return (FALSE); ELSE srw.set_hyperlink(EXP_FILE.linkto); return (TRUE); END IF; end;
情境如下:--建立類型(type)create or replace type list_obj is table of number;--建立表結構create table test( name varchar2(30) primary key check(regexp_like(name,'^([a-z]|[0-9]|_)+$')), id number not null, version_list list_obj) nested table version_list store as
1. 插入資料前判斷資料是否存在SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- =========================
Oracle Database Backup:--保留最近一周的備份記錄;====本文: ====開始==============複製代碼 代碼如下:echo 設定備份檔案存放檔案夾... set "tbuf=E:\Cway\backup" echo 設定備份檔案名(以星期幾命名,即備份檔案只儲存最近一周)... set name=%date% set name=%name:~-3% set
1、 查看當前被解鎖的對象 樣本: 將表aa加鎖 執行 select * from aa for update; 方式一:通過SQL查詢 select 'alter system kill session ',''''||trim(t2.sid)||','||trim(t2.serial#)||''';' from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; 執行結果
在Oracle查詢中,如果在沒有排序,但又想讓某列中特定值的資訊排到前面的時候,使用oracle的decode(欄位,'欄位值',數字)如 select name from user 查詢出來的所有資料,如果想讓 name='張三' 結果排到前面,則使用如下:select name from user order by decode(name,'張三',0)同理,如果想讓李四排到第二的話,可以繼續增加decode方法select name from user order by