Order By

Description

Specifies the order of the rows for application of the offset-clause and fetch-clause.

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 SUPPLIERS
	SET TOP_SUPPLIER = 'YES'
	ORDER BY VOLUME_2021 DESC;

Snowflake

UPDATE PUBLIC.SUPPLIERS
	SET TOP_SUPPLIER = 'YES'
-- ** MSC-WARNING - MSCEWI1002 - REMOVED NEXT STATEMENT, NOT APPLICABLE IN SNOWFLAKE. UPDATE ORDER BY OPTION **
--	ORDER BY VOLUME_2021 DESC
	                       ;

Last updated