Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<cfquery name="create_incident" datasource="#Foley#">
INSERT INTO dbo.Incidents(Date<cfif IsDefined("Form.Sales")>,Sales</cfif>)
VALUES(<cfqueryparam value="#Form.Date#"cfsqltype="CF_SQL_DATE"><cfif IsDefined("Form.Sales")>,<cfqueryparam value="#Form.Sales#" cfsqltype="CF_SQL_BIT"></cfif>)
</cfquery>
<cfif isDefined("form.fieldName") and len(trim(form.fieldName))>
'#form.fieldName#'
<cfelse>
NULL
</cfif>
indeed, or if the column is numeric and the database is one which, unlike, say, mysql, actually enforces data type compatibilityyou still may end up with a problem if your field isn't set up to accept 0 length strings