Answered
using trim with SQL
I've attempted to use trim() im my SQL statement but It
throws an error saying its not a valid function.
This isnt the statement but this is the context im using it in.
<cfquery datasource="#datasources.DATADSN#">
INSERT INTO dbo.People (Christian)
<cfif IsDefined("FORM.Christian") AND #FORM.Christian# NEQ "">
trim('#FORM.Christian#')
<cfelse>
NULL
</cfif>
</cfquery>
If you cant use it at this point, where can you use it?
This isnt the statement but this is the context im using it in.
<cfquery datasource="#datasources.DATADSN#">
INSERT INTO dbo.People (Christian)
<cfif IsDefined("FORM.Christian") AND #FORM.Christian# NEQ "">
trim('#FORM.Christian#')
<cfelse>
NULL
</cfif>
</cfquery>
If you cant use it at this point, where can you use it?
