我正在考虑创建一个速度加快事物的观点,而我的问题是:每个会话/连接还是全局视图?

例子:

User Foo issues a query that creates a VIEW X, then user Foo continues to query
against VIEW X.  
Meanwhile, User Bar issues the same query that creates a VIEW X because the creation and the name is hard coded into the function issuing the query.

现在,用户foo和用户栏是否可以使用相同的视图x工作,或者它们具有“私有”视图x?

有帮助吗?

解决方案

它们在数据库中创建,并且不限制会话。如果不同会话的视图实际上是相同的,则可以使用我认为的创建或替换视图。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top