Print Thread
SQL code folding
#28240 10/19/07 04:23 AM
Joined: Jul 2004
Posts: 2
NYC
Member
OP Offline
Member
Joined: Jul 2004
Posts: 2
NYC
Is it possible to fold SQL code including sub query?
For example this code should folded in lines:
1,2,4,8, and 10. It will help to read/write large queries.
Code
 1  SELECT 
 2         (SELECT COUNT(1)
 3             FROM DUAL
 4            WHERE EXISTS (SELECT 1
 5                    FROM TABLE1 T1
 6                   WHERE T1.FIELD1 = VAR1)
 7         ) +
 8         (SELECT COUNT(1)
 9            FROM DUAL
10           WHERE EXISTS (SELECT 1 
11                    FROM TABLE2 T2
12                   WHERE T2.FIELD2 = VAR2)
13         )
14   INTO RET
15   FROM DUAL;


Best Regards,
Miroslav.
Re: SQL code folding
#28241 10/19/07 05:25 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
I have added this to the list of enhancement requests.


Marco Kalter
Allround Automations
Re: SQL code folding
Marco Kalter #37137 01/29/10 12:56 PM
Joined: Jun 2004
Posts: 16
Germany, Dortmund
Member
Offline
Member
Joined: Jun 2004
Posts: 16
Germany, Dortmund
Hi Marco,

I have been looking for the same feature V. 8.0.1.1522, without a trace. You should be able to implement it to the SQL Editor because it is already part of the PLSQL Editor. At least a Goto corresponding bracket would be helpful within beg SQLs.

Greeting,
Holger

Re: SQL code folding
Holger B #38544 08/10/10 08:57 AM
Joined: Aug 2010
Posts: 1
J
Member
Offline
Member
J
Joined: Aug 2010
Posts: 1
I'd like to add my support of this request. I personally don't use PL and have no use of program windows etc.

But I do use multiple CASE WHEN's and Decodes as well as multiple part scripts.

It would be nice to be able to Fold it up in SQL window


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.033s Queries: 14 (0.010s) Memory: 2.5086 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-30 07:29:19 UTC
Valid HTML 5 and Valid CSS