September 2007
Intermediate to advanced
600 pages
20h 21m
English
As with adding data, there are two ways to update rows in a table. The code in Listing 14.10 demonstrates a row update using the SQL UPDATE statement.
| → | See Chapter 6, “Introducing SQL,” for an explanation of the UPDATE statement. |
<!--- Name: update2.cfm Author: Ben Forta (ben@forta.com) Description: Table row update demo Created: 07/01/07 ---> <!--- Update movie ---> <cfquery datasource="ows"> UPDATE Films SET MovieTitle='#Trim(FORM.MovieTitle)#', PitchText='#Trim(FORM.PitchText)#', AmountBudgeted=#FORM.AmountBudgeted#, RatingID=#FORM.RatingID#, Summary='#Trim(FORM.Summary)#', ImageName='#Trim(FORM.ImageName)#', DateInTheaters=#CreateODBCDate(FORM.DateInTheaters)# ... |
Read now
Unlock full access