Progress
SQL-92
Guide and Reference
SQLPStatement.setParam
Sets the value of an SQL statement’s input parameter to the specified value (a literal, procedure variable, or procedure input parameter). This method is common to the SQLCursor, SQLIStatement, and SQLPStatement classes.
Format
public void setParam(int
f, Object
val)
Returns
None
Parameters
f
An integer that specifies which parameter marker in the SQL statement is to receive the value (1 denotes the first parameter marker, 2 denotes the second, and so on).
val
A literal or the name of a variable or input parameter that contains the value to be assigned to the parameter marker.
Throws
DhSQLException
EXAMPLEThis code fragment illustrates SQLPStatement.setParam:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |