Skip Locked

Description

Specifies that rows are skipped when incompatible locks that would block the progress of the statement are held on the rows by other transactions.

This clause is not supported in the update statement of Snowflake

Click here to navigate to the IBM DB2 docs page for this syntax.

Grammar Syntax

Sample Source Patterns

IBM DB2

UPDATE EMPLOYEE1
     SET JOB=NULL, SALARY=0, BONUS=0, COMM=0
     WHERE WORKDEPT = 'E21' AND JOB <> 'MANAGER'
     SKIP LOCKED DATA;

Snowflake

UPDATE PUBLIC.EMPLOYEE1
	SET JOB=NULL, SALARY=0, BONUS=0, COMM=0
     WHERE WORKDEPT = 'E21' AND JOB <> 'MANAGER'
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. UPDATE SKIP LOCKED OPTION **
--     SKIP LOCKED DATA
                     ;

Last updated