I want to update a record's DateUpdated field each time the user updates the record.
I thought I should do it like this:
<cfquery>
UPDATE
dbo.MyTable
SET DateUpdated = <cfqueryparam value="GetDate()" />
</cfquery>
I don't know if this correct. There's no cfsqltype
attribute value for a function. In which case, do I just do this
<cfquery>
UPDATE
dbo.MyTable
SET DateUpdated = GetDate()
</cfquery>