Difference between a inline function and a view

前端 未结 9 1147
悲哀的现实
悲哀的现实 2020-12-19 11:17

I am a newbie in using functions and it appears to me that an inline function is very similar to a view. Am I correct?

Also, can I have UPDATE statements within a fu

9条回答
  •  盖世英雄少女心
    2020-12-19 12:07

    A function performs a task, or many tasks. A view retrieves data via a query. What ever fits in that query is what you are limited too. In a function I can update, select, create table variables, delete some data, send an email, interact with a CLR that I create, etc. Way more powerful than a lowly view!

提交回复
热议问题