Skip to main content
  • UPDATE cannot modify data in the primary key column of a table.
  • Call FLUSH after UPDATE to persist the changes to storage. This ensures that the changes are committed and visible for subsequent reads.
  • If you only need the UPDATE to wait until it is included in a successful checkpoint, you can enable DML_WAIT_PERSISTENCE. This does not provide the same immediate read-after-write visibility as FLUSH.

Syntax

Parameters

Example

The taxi_trips table has three records:
The following statement updates the city name from ‘Yerba Buena’ to ‘San Francisco’. Also, it returns the value of id for the updated rows.
The following statement converts the distance unit from kilometer to mile for certain areas.