开发者

basic oracle question

开发者 https://www.devze.com 2022-12-08 12:35 出处:网络
I have this query: select total.lecgrouplecture(l.groupcode)lecturename, total.lecgrouptime(l.groupcode) lecttime

I have this query:

select total.lecgrouplecture(l.groupcode)  lecturename,
       total.lecgrouptime(l.groupcode) lecttime 
  from total.lecgroup l  
 where term = (s开发者_如何学编程elect term 
                from total.CURENTTERM) 
   and rownum < 10 
order by lecturename

I want to know what total.lecgrouptime(l.groupcode) is, and get this information from where?


total is the package name

lecgrouplecture is a function within that package

Look in user_source for the code or use a GUI like SQL Developer or TOAD


it looks like TOTAL is the name of a schema (SELECT * FROM all_users WHERE username = 'TOTAL'). If this is the case then lecgrouplecture must be a pl/sql function. You will find what it does with Robert's query:

SELECT * 
  FROM all_source 
 WHERE owner = 'TOTAL' 
   AND name = 'LECGROUPLECTURE' 
 ORDER BY line;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号