Which are more performant, CTE or temporary tables?
问题 Which are more performant, CTE or Temporary Tables ? 回答1: I'd say they are different concepts but not too different to say "chalk and cheese". A temp table is good for re-use or to perform multiple processing passes on a set of data. A CTE can be used either to recurse or to simply improved readability. And, like a view or inline table valued function can also be treated like a macro to be expanded in the main query A temp table is another table with some rules around scope I have stored