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: Longest SQL statements!!!

RE: Longest SQL statements!!!

From: Toepke, Kevin M <ktoepke_at_trilegiant.com>
Date: Wed, 28 Nov 2001 10:12:49 -0800
Message-ID: <F001.003CF55B.20011128100136@fatcity.com>

Murali:

The only issue that I know of is in Oracle that the SQL statement must be less than 64K. I've written 3-page SQL statements that returned in the sub-0.1 second range.

However, from a human standpoint, the longer the SQL is, the harder it is for a new developer to pick up and tune/debug/tweak/etc. In general, I try to keep my SQL to under 1/2 page. But I DO NOT sacrifice readability in order to keep my SQL Under 1/2 page. Most of the time, when I'm asked to tune or debug a SQL statement, my reformatted, revised SQL winds up being longer than the original -- but much easier for a human to read -- reformatting it makes it easier for me to tune or correct.

HTH
Caver

-----Original Message-----
Sent: Wednesday, November 28, 2001 12:22 PM To: Multiple recipients of list ORACLE-L

Are there any implications on how long the SQL statement is? The current SQL

statements that I am inheritting, is really long. tons of embedded sub queries etc.

My first question is are there any known issues with haveing very long SQL statements and if yes what has been a good length other than the fact that it may depend on your SGA.

Thanks

Murali



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Murali Vallath
  INET: murali_vallath_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Toepke, Kevin M
  INET: ktoepke_at_trilegiant.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Nov 28 2001 - 12:12:49 CST

Original text of this message

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