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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Need Help with some PLSQL code please

Re: Need Help with some PLSQL code please

From: Chris \( Val \) <chrisval_at_bigpond.com.au>
Date: Sun, 14 Sep 2003 02:33:38 +1000
Message-ID: <bjvgtb$mqgdn$1@ID-110726.news.uni-berlin.de>

"Daniel Morgan" <damorgan_at_x.washington.edu> wrote in message news:1063469307.155833_at_yasure...
| Comments interspersed:
|
| Chris ( Val ) wrote:
|
| ><snipped>

Hi Daniel.

| I would suggest you rewrite in the following form:
|
| CREATE OR REPLACE PROCEDURE FIND_DXF_ERRORS (....) IS
|
| CURSOR and EXCEPTION definitions ...
|
| MyFlag BOOLEAN := FALSE;
| Counter NUMBER( 5 ) := 0;
|
| TempID VARCHAR2( 50 );
| nTempID NUMBER(##);

I haven't come across this yet.
Is the meaning of '##' to take two variant like characters ?

| TempDate VARCHAR2( 50 );
| dTempDate DATE;
|
| BEGIN
| BEGIN
| nTempID := TO_NUMBER(TempID);
| EXCEPTION
| WHEN OTHERS THEN
| RAISE ...
| END;
|
| BEGIN
| dTempDate := TO_DATE(TempDate);
| EXCEPTION
| WHEN OTHERS THEN
| RAISE ...
| END;
|
| ....
|
| END;
| /
|
| Dump the functions and just deal directly with the problem at hand.

I had something similar to this originally, but I guess I got carried away. Thanks for your suggestion also, much appreciated.

Cheers.
Chris Val Received on Sat Sep 13 2003 - 11:33:38 CDT

Original text of this message

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