作者: JAN
APR
JUL
OCT
********************************************************************
****************************常用設置********************************
Declare
flag varchar
cou number:=
n number;
Begin
Loop
logon(USERNAME
flag:=Get_Application_Property(DATASOURCE);
Exit when cou>
cou:=cou+
End Loop;
If flag<>
set_alert_property(
n:=show_alert(
raise form_trigger_failure;
End if;
End;
Set_Block_Property(
Go_Block(
Execute_Query;
***************************************************
變量
局部變量
全局變量
***************************************************
synchronize;
EXECUTE_TRIGGER(TRIGGER_NAME);
clear_block(NO_VALIDATE);
Declare
n number;
Begin
Set_Alert_Property(
n:=Show_Alert(
If n=Alert_Button
ElsIf n=Alert_Button
End if;
End;
Set_Window_Property(FORMS_MDI_WINDOW
Set_Window_Property(FORMS_MDI_WINDOW
Set_Window_Property(FORMS_MDI_WINDOW
:System
Set_Item_Property(
Set_Item_Property(
Set_Item_Property(
Set_Item_Property(
Set_Item_Property(
Set_Item_Property(
Set_Item_Property(
Declare
n number;
Begin
clear_list(
m:=populate_group(
populate_list(
/*
其中FKFS 為 record group ;
*/
End;
Add_List_Element(list_name
Add_List_Element(list_id
Delete_List_Element(list_name
Delete_List_Element(list_id
例:
BEGIN
Delete_List_Element(
Add_List_Element(
END;
GET_LIST_ELEMENT_COUNT(list_id);
GET_LIST_ELEMENT_COUNT(list_name);
GET_LIST_ELEMENT_LABEL(list_id
GET_LIST_ELEMENT_LABEL(list_name
GET_LIST_ELEMENT_VALUE(list_id
GET_LIST_ELEMENT_VALUE(list_name
DECLARE
timer_id Timer;
one_minute NUMBER(
BEGIN
timer_id := CREATE_TIMER(
END;
DECLARE
ed_id Editor;
status BOOLEAN;
BEGIN
ed_id:=Find_Editor(
IF NOT Id_Null(ed_id) THEN
Show_Editor(ed_id
ELSE
Message(
RAISE Form_Trigger_Failure;
END IF;
END;
DECLARE
lv_id LOV;
status BOOLEAN;
BEGIN
lv_id := Find_LOV(
status := Show_LOV(lv_id
END;
Declare
err_
Begin
If
Raise err
End if;
Exception
When err_
END;
SET_APPLICATION_PROPERTY(CURSOR_STYLE
***********************************************************************
**********************************函數*********************************
UPPER|LOWER|INITCAP(STRING)
LPAD|RPAD(STRING
LTRIM|RTRIM(SRTING
INSTR(
ABS(VALUE)
MOD(VALUE
ROUND|TRUNC(VALUE
SIGN(VALUE)
GREATEST(N
列表的最小值
LEAST(N
FLOOR(VALUE) floor(
CEIL(VALUE) cell (
substr(string
decode(value
NVL(UALUE
length(:em_id)
ascII(string)
AVG(VALUE)平均值
COUNT(VALUE)行數
MAX(VALUE)最大值
MIN(VALUE)最小值
SUM(VALUE)和
TRANSLATE(STRING
如 TEANSLATE(
GREATEST|LEAST(列名
ORDER BY
***********************************************************************
***********************************************************************
(
判斷
IF NOT(CORSOR_NAME%ISOPEN) THEN
OPEN CORSOR_NAME;
END IF;
FETCH
From:http://tw.wingwit.com/Article/program/Oracle/201311/17090.html