2011-01-20 4 views
0

나는 물건을 빠르게하기 위해 VIEW를 만들 것을 생각하고있다. 나의 질문은 : 세션/연결마다보기인가, 아니면 글로벌인가?MySQL, 뷰가 전체적으로 또는 세션/연결별로 있습니까?

예 : 이제

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. 

, 사용자 푸와 같은 VIEW의 X와 사용자 바 직장이나 그들이 가지고 할 "개인"VIEW의 X 각합니까?

답변

1

데이터베이스에서 생성되었으므로 세션에 바인딩되지 않습니다. 뷰가 실제로 다른 세션에서 동일하면 CREATE OR REPLACE VIEW를 사용하면됩니다.

+0

+1 알겠습니다.이 문제를 해결해 주셔서 감사합니다. –

관련 문제