For example, the following code will generate the report as shown:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHuFFh_bED1ZyiuwO75h-KcF3QWDyAc_P7BjG_Gt1_ReP92EjyturQ8_cp6wTYD1uiv_avVYk7N2_Bt05uFDRwGqmXMiPS_7OwHNVB67SfNIZyq0fErxl5Bsq3QUJkcHWbDqlmSnsqvdgc/s400/namesincode.png)
- It gets the name of a query from the user.
- Creates an external table to read that file.
- Creates a second external table of the words in that file if not a comment.
- Creates a global temporary table of the intersection of table names from All_Tab_columns and the words.
- Spools that list of table names.
- Based on the table names, compiles a list of column names from All_Tab_Columns and compares that to the words.
- Spool words found as column_names.
- Spool words found that start with an ampersand.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3YOSznkuGLmuLo0FRtNs58E6ay8HP1gIvqjlDGpeWCT1U7x-p_FbiDB5jHzZ49GQGlv2hs-baCy7obawSmEWgN9Daq1A8lSxNa99BrpkVB0SLsw7sswS4eL1DNVGDrOj0Yv3gufnCOBVL/s400/namesincode.png)
Note: There is a new version of this query that includes other called queries.
No comments:
Post a Comment