- For tables with primary keys, if you insert a row with an existing key, the new row will overwrite the existing row.
- Call FLUSH after
INSERTto persist the changes to storage. This ensures that the changes are committed and visible for subsequent reads. - If you only need the
INSERTto wait until it is included in a successful checkpoint, you can enableDML_WAIT_PERSISTENCE. This does not provide the same immediate read-after-write visibility asFLUSH.
Syntax
Parameters
Example
The tabletaxi_trips has three columns:
taxi_trips.
taxi_trips_new into taxi_trips. The two tables have the same column setup. Also, it returns the value of id for the inserted rows.