|
marco.facchinetti@xxxxxxxxx>:
Am 21.08.2024 um 12:11 schrieb Marco Facchinetti <
(Open > Fetch > Close) x 1.260 times, Declare Cursor only once.
But you change the parameters / host variables every time?
I did test the code in ACS and the cost for a single customer is between
In this case I can only shoot wild assumptions - DECLARE is no executable
program statement - it is "executed" at compile time.
Maybe it's that - the DECLARE is executed / optimized at compile time,
whereas the SELECT-INTO is executed / optimized at runtime.
Normally I would assume, that all static SQL statements are optimized at
compile time - whereas dynamic SQL is of course only handled at runtime.
As I said - wild assumptions - maybe Barbara or Birgitta can clarify that.
HTHThanks again
Daniel
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.