mysql、ビューはグローバルですか、それともセッション/接続ごとにビューですか?

StackOverflow https://stackoverflow.com/questions/4747338

  •  13-10-2019
  •  | 
  •  

質問

私は物事をスピードアップするビューを作成することを考えています。私の質問は次のとおりです。セッション/接続ごとのビューですか、それともグローバルですか?

例:

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がありますか?

役に立ちましたか?

解決

それらはデータベースで作成されており、セッションバインドではありません。ビューが実際に異なるセッションで同じである場合、私が思うに、Createまたは交換ビューを使用することができます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top