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: What's the best alternative to this pl/sql ?

Re: What's the best alternative to this pl/sql ?

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Thu, 27 Feb 2003 23:49:23 GMT
Message-ID: <MPG.18c843dafabb52c9896d4@news.la.sbcglobal.net>


damorgan_at_exesolutions.com said...
(snip)
>
> If the source of the SQL is some front-end I'd advise against putting any SQL
> there at all ... compiled, prepared, or otherwise. Passing SQL statements across
> a wire is not an efficient use of resources.
>
> Daniel Morgan
>

I agree with you 100% ... in principle, at least. However, if I wrote a stored procedure (or even if I put them all in a single package) for every one of the hundreds (thousands?) of source SQL we're passing from our Java apps to the db, I'd have to get very creative with the procedure names - Get<colnames>, Get<colnames>_When_Sorting_<colname>, Get<colnames>_When_Joining_With_<tablename>, and so on.

Is it ok if I act as a name-dropper? Paraphrasing what Tom Kyte said, they should never have added the Statement to the JDBC spec; only allowed PreparedStatement.

-- 
/Karsten
DBA > retired > DBA
Received on Thu Feb 27 2003 - 17:49:23 CST

Original text of this message

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