Using select for update in cursors and DML

select for update functionality is based on the value of the configuration parameter select for update:

In versions earlier than 15.7:

In version 15.7 and later:

For details on select for update syntax and usage, and for cursor scope and usage, see the Reference Manual: Commands.