Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Thoughts in /* standardized SQL remarks */

RE: Thoughts in /* standardized SQL remarks */

From: Mark W. Farnham <mwf_at_rsiz.com>
Date: Fri, 17 Mar 2006 16:27:42 -0500
Message-ID: <KNEIIDHFLNJDHOOCFCDKKEDDHNAA.mwf@rsiz.com>

Someone remind me, which form of comment marker survives all the various inbound filters better?

I was thinking it was leading -- rather than bracketed /* */, and which one you choose can explain lost hints as well, right?

Of course if you're building systems, then you can store queries and one of the parameters can be the caller identification string and the others are the data values (or arrays), and you don't have to worry about the source of the query and you minimize what gets tossed through the network to a routine name and data. If different calling sources for the same stored query have a use pattern associated with parameters that probably need different peeks, tossing in a literal string for the caller identification parameter instead of a bind variable can make it hash differently, too. Just be careful on that slippery slope.

This, of course, does nothing for truly ad hoc reporting (but does support parameterized pre-planned report queries).

Regards,

mwf
  -----Original Message-----
  From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Ethan Post   Sent: Friday, March 17, 2006 3:45 PM
  To: Oracle Discussion List
  Subject: Thoughts in /* standardized SQL remarks */

  Reading through some very long and complicated SQL trace files today, I find I frequently have to go grep the code to try to find out where the SQL originated from. Do you think a comment in the SQL should be standardized for our development staff?

  SELECT /* module, about, date modified */

  what are your thoughts?

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Mar 17 2006 - 15:27:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US