1 | SQL update statement is: |
2 | UPDATE tablename SET columnname = value WHERE condition |
3 | |
4 | To update the record with the front end form from the example above using a CFQUERY use this syntax: |
5 | |
6 | <CFQUERY NAME="UpdateEmployee" |
7 | DATASOURCE="CF 3.0 Examples"> |
8 | UPDATE Employees |
9 | SET Firstname='#Form.Firstname#', |
10 | LastName='#Form.LastName#', |
11 | Phone='#Form.Phone#' |
12 | WHERE Employee_ID=#Employee_ID# |
13 | </CFQUERY> |