Difference between a inline function and a view

前端 未结 9 1117
悲哀的现实
悲哀的现实 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:02

    A view is a "view" of data that is returned from a query, almost a pseudo-table. A function returns a value/table usually derived from querying the data. You can run any sql statement in a function provided the function eventually returns a value/table.

提交回复
热议问题