<cfupdate>

Updates existing records in data sources.

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfupdate datasource=object tablename=string tableowner=string tablequalifier=string username=string password=string formfields=string >
Attribute Description
datasource
object, optional

Name of the data source that contains a table.

tablename
string, required

Name of the table you want to update.

tableowner
string, optional

For data sources that support table ownership, for example, SQL Server, Oracle, and Sybase SQL Anywhere, use this field to specify the owner of the table.

tablequalifier
string, optional

For data sources that support table qualifiers, use this field to specify the qualifier for the table. The purpose of table qualifiers varies across drivers. For SQL Server and Oracle, the qualifier refers to the name of the database that contains the table. For the Intersolv dBase driver, the qualifier refers to the directory where the DBF files are located.

username
string, optional

If specified, username overrides the username value specified in the ODBC setup.

password
string, optional

If specified, password overrides the password value specified in the ODBC setup.

formfields
string, optional

A comma-separated list of form fields to update. If this attribute is not specified, all fields in the form are included in the operation.

Examples

Example content for cfupdate

<cfupdate datasource="sample_dsn" tablename="test_tbl">

See also