Difference between a inline function and a view

前端 未结 9 1114
悲哀的现实
悲哀的现实 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 11:59

    A function allows you to pass in parameters to create a more specific view. Lets say you wanted to have grab customers based on state. A function would allow you to pass in the state you are looking for and give you all the customers by that state. A view can't do that.

提交回复
热议问题