<cfquery name="q1" datasource="myDsn">
update table1
set field1 = '#textValue#'
where recordID = #recNum#
</cfquery>
If the field is a numeric field, change the ='textValue' to = #numberValue#. You put single quotes around text values and leave them off for numeric or date values. If you want to update all the rows and not just a single row, leave off the "where recordID = #recNum#".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.