You should not place do form in the form event. You should place do form in a program.
e.g.
In test1.prg
do form forma <= execute form forma
do form formb <= after execute form forma, then execute formb.
:-)
the syntax is
create or replace procedure sample (pdate IN varchar2, pnum OUT number) is
CURSOR cur1 IS
SELECT *
FROM table1
WHERE col1 = pdate;
CURSOR cur2(vcol NUMBER) IS
SELECT *
from TABLE2
WHERE col3 = vcol; -- parameterized cursor
BEGIN
FOR rec1...
In Oracle SQL (e.g. SQL plus, Oracle Form, Oracle report),
1. In Oracle default, it will date field in format
'DD-MON-YY' e.g. 01-JAN-99.
You can change this statement (to get a max date)
SELECT MAX(DATEFIELD) FROM MAINTABLE.EVENT
to
SELECT TO_CHAR(MAX(DATEFIELD),'DD-MON-YYYY HH24:MI:SS')...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.