The SqlHandle class / base.SqlHandle methods |
Sets the value of an SQL parameter for this SQL handle.
setParameter( index INTEGER, value fgl-type )
Call the setParameter() method to define the value of an SQL parameter specified with a ? place holder in the string passed to the prepare() method.
The SQL statement must have been prepared with a prepare() call.
It is possible to pass numeric and string constants directly to the method, but type conversion cannot be done without a program variable.
DEFINE v_pk INT, v_crea DATETIME YEAR TO SECOND ... CALL sh.setParameter(1,v_pk) CALL sh.setParameter(2,v_crea)