我正在考虑提高某些SQL的性能,目前CTE在脚本中被多次使用和引用.我会使用表变量来改进吗?(不能使用临时表,因为代码在函数内).
sql sql-server common-table-expression
common-table-expression ×1
sql ×1
sql-server ×1