To get the total number of lines inside a function, trigger, procedure, ect. We need to run our query against the
ALL_SOURCE table (describes the text source of the stored objects accessible to the current user). Or against the
USER_SOURCE table (describes the text source of the stored objects owned by the current user. Its columns (except for OWNER) are the same as those in ALL_SOURCE.
Counting the total lines is a no brainier, we just use oracle's max function and group by name and type. To get the total number of lines without the empty or "space" lines, I've used the DECODE function along with REPLACE and chr(10), the New Line character.
| Title | Under | Posted on |
|---|---|---|
| Abs Mgmt: How can Abs rule pro-rate contractor's last month's entitlement (need help urgently) | PeopleSoft Functional | 03/10/2010 - 9:21pm |
| Can we user LONG datatype as a search option in PeopleSoft | PeopleSoft Technical | 03/10/2010 - 11:22am |
| special caracters are not translated correctly when ftp from windows to unix | Programming | 03/09/2010 - 3:23pm |
| How to view the employees from particular country in peoplesoft? | PeopleSoft Technical | 03/03/2010 - 1:56am |
Comments
Hi Lepa,
'Total Number of Lines',What does this mean?
please teach me via other explain,thanks.
Hi Lepa,
I see the mean via inquiry the table,dont need to tell me now.
Post new comment