문제

Firstly, let me start by saying that I haven't ever directly used SQL views. I don't know if they are an antiquated thing, or if they're the right way to do things in this arena. Which of the 2 methods do you prefer when considering security (don't show Acme's credit card number that's on file to a WidgetCorp user, etc), and are there other important considerations besides security?

도움이 되었습니까?

해결책

I use it for

  1. Security purposes like you described

  2. In sub queries. Helps to keep my queries more compact, efficient with indexed views and also if I find myself reusing the same sub-query them I just make it into a view.

Here something to read.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top