Basic HTML version of Foils prepared May 3 1998

Foil 29 Using Dynamic Parameters in SQL Statements

From Java Blend and Cold Fusion High Level Database Interfaces CPS616 Web Technologies -- Spring 98. by Chao Wei Ou


SQL statement with dynamic parameters:
SELECT * FROM Employees
WHERE LastName = '#Form.LastName#'
If the user entered "Rucker" for LastName, the SQL statement sent to the database would be:
SELECT * FROM Employees
WHERE LastName = 'Rucker'
Syntax for cfm file to refer to parameters from the form:



© 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 Sat Nov 28 1998