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: Dynamice SQL in Oracle

Re: Dynamice SQL in Oracle

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Sat, 14 May 2005 12:03:14 +0100
Message-ID: <v8mb81h619uf83ue8j5m41torandjdg8t3@4ax.com>


On Fri, 13 May 2005 22:24:07 -0700, DA Morgan <damorgan_at_x.washington.edu> wrote:

>True but you are ignoring the point. There is NEVER a reason do create
>a table within a PL/SQL block. EVER!

 If an application is modifying its own schema in such a way, then yes, agreed, it's almost certainly a sign of poor design.

 But there do exist legitimate cases for use of "dynamic DDL" in upgrade scripts run in maintenance cycles, as one of several possible approaches to handling upgrading an application from some arbitrary older version to the current one.

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Sat May 14 2005 - 06:03:14 CDT

Original text of this message

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