Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Avoiding repeating code in PL/SQL DML
Hey all. (Oracle 9.2.0.1.0 on Windows XP)
I have the following DML in my PL/SQL code:
and time_stamp >= v_delete_from_date and time_stamp < v_delete_to_date
and time_stamp >= v_delete_from_date and time_stamp < v_delete_to_date
As you see, I use the same nested subquery twice in that delete
statement.
Since repeating code by c&p is rather evil in my opinion I would like
to know how to avoid such constructs. (_Especially_ if I have that
range SELECT from measures... appear a few more times in my PL/SQL
package)
thanks a bunch!
best,
Martin
Received on Mon Jul 31 2006 - 07:13:38 CDT