Basic HTML version of Foils prepared 7 October 97

Foil 35 How to use Example of PL/SQL Stored Procedure

From untitled presentation ARL Database Tutorial -- February 98. by Gang Cheng, C.W. Ou, Geoffrey C. Fox


On invoking the stored procedure with the name 'fox' - get_phoneno_by_name('fox'), one will generate the following two lines:
  • The office phone no. of Geoffrey Fox: 3154432163
  • The home phone no. of Geoffrey Fox: 3156827945
Note a cursor is used to hold the query results in memory for processing
htp.p is the invocation of a procedure p in a package htp to print out characters to stdout
When this procedure is created/compiled, all the objects referred in the procedure (e.g. the two tables) must be present and valid in the RDBMS



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Feb 5 1998