Defines stored procedure parameters.
This tag is nested within a cfstoredproc tag.
This tag does not have a body.
<cfprocparam cfsqltype="CF_SQL_BIGINT">
cfprocparam(cfsqltype="CF_SQL_BIGINT");
inin: The parameter is used to send data to the database system only. Passes the parameter by value.out: The parameter is used to receive data from the database system only. Passes the parameter as a bound variable.inout: The parameter is used to send and receive data. Passes the parameter as a bound variable.
inoutinouttype attribute is OUT or INOUT.
CF_SQL_BIGINTCF_SQL_BITCF_SQL_CHARCF_SQL_BLOBCF_SQL_CLOBCF_SQL_DATECF_SQL_DECIMALCF_SQL_DOUBLECF_SQL_FLOATCF_SQL_IDSTAMPCF_SQL_INTEGERCF_SQL_LONGVARCHARCF_SQL_MONEYCF_SQL_MONEY4CF_SQL_NUMERICCF_SQL_REALCF_SQL_REFCURSORCF_SQL_SMALLINTCF_SQL_TIMECF_SQL_TIMESTAMPCF_SQL_TINYINTCF_SQL_VARCHAR00 allows any length. The maxLength attribute is not required when specifying type=out.
00 allows any number of decimal places.
falsetype parameters.
truefalse: for Oracle<bx:procparam> in BoxLang
<cfstoredproc procedure = "foo_proc" dataSource = "MY_SYBASE_TEST" username = "sa" password = "mygoodpw" dbServer = "scup" dbName = "pubs2" returnCode = "Yes" debug = "Yes">
<cfprocresult name = RS1>
<cfprocresult name = RS3 resultSet = 3>
<cfprocparam type = "IN" CFSQLType = "CF_SQL_INTEGER" value = "1" dbVarName = @param1>
<cfprocparam type = "OUT" CFSQLType = "CF_SQL_DATE" variable = "FOO" dbVarName = @param2>
</cfstoredproc>
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.