SQL Server:非持久计算列与视图的好处(SQL Server: Benefit of a non

编程入门 行业动态 更新时间:2024-10-23 14:27:05
SQL Server:非持久计算列与视图的好处(SQL Server: Benefit of a non-persisted computed column vs views)

我可以理解persisted计算列的好处:总是可以产生相同结果的计算也可以在插入/更新时缓存,以便以后节省时间和精力。

是否有非持久计算列的特殊好处? 与保存视图不一样吗?

I can understand the benefits of a persisted computed column: calculations which will always yield the same results might as well be cached on insert/update to save time and effort later.

Is there a special benefit of a non-persistent calculated column? Isn’t that the same as saving a view?

最满意答案

是否有非持久计算列的特殊好处?

与持续计算的列相比,它可以节省存储空间,并且仍然可以编入索引。 与一个视图相比,它可以避免您拥有一个单独的对象进行管理。

但是没有一种计算列被广泛使用。

大卫

Is there a special benefit of a non-persistent calculated column?

vs. a persisted calculated column it saves on storage and can still be indexed. vs. a view it saves you from having a separate object to manage.

But neither kind of calculated columns are used extensively.

David

更多推荐

本文发布于:2023-04-27 14:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1327180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视图   持久   好处   SQL   Server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!