How to conditionally rename or exchange a table?

237 Views Asked by At

Is there an equivalent to the T-SQL IF...ELSE keywords for control flow?

I'm trying to conditionally EXCHANGE tables A and B if A exists, otherwise just rename B to A. From documentation, all I'm seeing around conditional logic is to use functions within a SELECT statement.

0

There are 0 best solutions below