reuse sql with view or function

前端 未结 4 577
说谎
说谎 2021-01-08 00:00

I have a sql query that I will be reusing in multiple stored procedures. The query works against multiple tables and returns an integer value based on 2 variables passed to

4条回答
  •  余生分开走
    2021-01-08 00:13

    One advantage a TVF has has over a view is that you can force whoever calls it to target a specific index.

提交回复
热议问题