Basic HTML version of Foils prepared 7 October 97

Foil 36 Explanation of Example of PL/SQL Stored Procedure

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


1 LOWER is a built-in function converting a string into its lower case
2 || concatenates two strings into one. E.g., 'CPS'||'616' equals 'CPS616' (same as + in Java, . in Perl)
3 pname dbname%TYPE implies PL/SQL variable pname inherits data type of dbname
4 LIKE is a comparison operator such that x LIKE y is TRUE if x does match the pattern y.
5 The character '%' matches any string of zero or more characters
6 The SQL statement looks at rows whose last_name or first_name field has the input string cname as a substring in lower case

in Table To:


© 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