Wait Option
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 TABLE1 AS t1
SET t1.Column1 = 1
WAIT FOR OUTCOME;
UPDATE EMPLOYEE
SET JOB=NULL, SALARY=0, BONUS=0, COMM=0
NOWAIT;
UPDATE PROJECT P
SET P.LOCATION = D.LOCATION
FROM DEPARTMENT D
WHERE P.DEPTNO = D.DEPTNO
WAIT 10;
Snowflake
UPDATE PUBLIC.TABLE1 AS t1
SET t1.Column1 = 1
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. UPDATE WAIT FOR OPTION **
-- WAIT FOR OUTCOME
;
UPDATE PUBLIC.EMPLOYEE
SET JOB=NULL, SALARY=0, BONUS=0, COMM=0
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. UPDATE NO WAIT OPTION **
-- NOWAIT
;
UPDATE PUBLIC.PROJECT P
SET P.LOCATION = D.LOCATION
FROM DEPARTMENT D
WHERE P.DEPTNO = D.DEPTNO
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. UPDATE WAIT TIME SEC OPTION **
-- WAIT 10
;
Related EWIs
MSCEWI1002: Removed next statement, not applicable in SnowFlake
Last updated
Was this helpful?