What are views good for?

后端 未结 14 1273
你的背包
你的背包 2020-11-28 03:31

I\'m just trying to get a general idea of what views are used for in RDBMSes. That is to say, I know what a view is and how to make one. I also know what I\'ve used them f

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 04:08

    In a way, a view is like an interface. You can change the underlying table structure all you want, but the view gives a way for the code to not have to change.

    Views are a nice way of providing something simple to report writers. If your business users want to access the data from something like Crystal Reports, you can give them some views in their account that simplify the data -- maybe even denormalize it for them.

提交回复
热议问题