Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4385

RE: Query parser small bug in custom sql definition for the grid (wrong column name for last column)

$
0
0
You did not provide a column alias to the column “SUM (NR_LOG_READS)”, so Oracle used your comment as the column name.  Best practice should always be to name your columns.
 
So this:
SUM (NR_LOG_READS)
         --,DBMS_LOB.SUBSTR (SQL_TEXT, 220)         
 
Should be turned into this (or something like this):
SUM (NR_LOG_READS)SUM_NR_LOG_READS
         --,DBMS_LOB.SUBSTR (SQL_TEXT, 220)         
 
 
Thanks
David
 
 
 
 

Viewing all articles
Browse latest Browse all 4385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>