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 |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
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