Want to insert a numerical value that contains decimal using <cfprocparam>, but the decimal portion is not showed up in the database? Most likely, we forgot to specify scale attribute. scale attribute is used to specify number of decimal places. If not specified, the default value is 0.
<cfstoredproc procedure="spuInsertBoxLength" datasource="#myDataSource#"> <cfprocparam cfsqltype="CF_SQL_FLOAT" scale="2" value="123.45" /> </cfstoredproc>Reference:
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.