SWAP_ORDER (JOIN Option)

SWAP_ORDER swaps the order of the join after the SQL is parsed. This can be useful for queries with complex joins, where swapping join order might be easier than trying to move a large amount of text in the SQL. If SWAP_ORDER is not specified, the parsed join order applies.

Operator

JOIN

Syntax

SWAP_ORDER

Example

SELECT column1 FROM table1 INNER {OPTION SWAP_ORDER} 
	JOIN table2 ON table1.id = table2.id