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 -> Prepared statement within a stored procedure loop

Prepared statement within a stored procedure loop

From: <mozkill_at_my-deja.com>
Date: Fri, 11 Jun 1999 23:31:08 GMT
Message-ID: <7js67s$ssl$1@nnrp1.deja.com>


Does anyone have a rough idea of what the syntax for a prepared statement would be inside a loop of a stored procedure.

Example:

while x < 10
  preparedStatement = "SELECT label" + x + " FROM field" + x + " WHERE item = "somestring"
execute(preparedstatement)
end loop

i realize the syntax above is all screwed up. any help would be appreciated, or a GOOD url. notice how the table and field element dynamically change according to the value of "x"

send a carbon copy of your reply to jonx.williams_at_intel.com

thanks a bunch

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Fri Jun 11 1999 - 18:31:08 CDT

Original text of this message

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