hi all.
i have used this query:
SELECT text FROM all_source WHERE owner = 'TOTAL' AND lower(name) = lower('LECGROUPTIME') ORDER BY line
to find context function that named LECGROUPTIME. ive received:
Function LECGROUPTIME (inGroupCode in varchar2)
Return Varchar2
is
Cursor GetTime is
Select Day,BeginTime,Endtime
From Program Where Groupcode = inGroupCode;
MyDay Varchar2(10) ;
MyFlag Number;
MyTime Varchar2(200);
MyBuf Varchar2(50);
MyDayBuf Varchar2(10);
MyBeginTime Date;
MyEndTime Date;
begin
MyFlag := 0;
myTime := ' ';
Open GetTime;
Loop
Fetch GetTime InTo MyDay,mybeginTime,MyEndTime;
Exit When (GetTime%NOTFOUND) OR (GetTime%NOTFOUND is NULL);
Select Day InTo MyDayBuf From Refrence
Where No = MyDay;
If MyFlag <> 0 Then
MyTime := MyTime || ' و ';
End If;
MyTime := MyTime || myDayBuf || To_Char(MyBeginTime,'HH24:MI') || ' تا ' || To_Char(MyEndTime,'HH24:MI');
MyFlag := 1;
End Loop;
Close GetTime;
IF myTime=' ' Then
MyTime:='--';
End If;
Return MyTime;
Exception
When NO_DATA_FOUND Then
Return '--';
End;
in one line there is: Select Day,BeginTime,Endtime From Program Where ...
i cant see any table that named Program... can you say me why? thanks...