Is SQL DATEDIFF(year, …, …) an Expensive Computation?

前端 未结 3 1799
渐次进展
渐次进展 2021-01-19 16:08

I\'m trying to optimize up some horrendously complicated SQL queries because it takes too long to finish.

In my queries, I have dynamically created SQL statements wi

3条回答
  •  感动是毒
    2021-01-19 16:52

    One thing you might be able do to improve performance might be to put an index on the temp table on MID.

    Check your execution plan to see if it helps (may depend on the number of rows in the temp table).

提交回复
热议问题