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

Home -> Community -> Usenet -> c.d.o.server -> Re: Deadly sins againts database performance/scalability

Re: Deadly sins againts database performance/scalability

From: Alkos <azerty_at_nospam.org>
Date: Fri, 28 Nov 2003 10:52:25 +0100
Message-ID: <bq75sr$k3g6@news.rd.francetelecom.fr>

"Marc Blum" <blumNOSPAM_at_marcblum.de> a écrit dans le message news: k2qcsv0ds3tm0qb0fmssn2oipag7bsaod4_at_4ax.com...
> (1)
> SELECT DISTINCT ...
>
> (2)
> ... WHERE <attribute> IN (SELECT DISTINCT ...)
>
> (3)
> LOOP
> EXECUTE IMMEDIATE some_sql;
> END LOOP;
>
> (4)
> SELECT MAX(id) + 1 AS new_id FROM big_table
>
> (5)
> WHERE TRUNC(date_attr) = TRUNC(date_variable)
>
>
>
> --
> Marc Blum
> mailto:blumNOSPAM_at_marcblum.de
> http://www.marcblum.de

Hello,

Why
(3)
LOOP
   EXECUTE IMMEDIATE some_sql;
END LOOP;
should be avoided ??

OK, it's Dynamical SQL but it could be useful to write scalable batch scripts.
Tell me if i'm wrong.

Cheers,
Alkos Received on Fri Nov 28 2003 - 03:52:25 CST

Original text of this message

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