View
IT Notes → Database → SQL @ December 22, 2020
View is nothing but parsed SQL statement which fetches record at the time of execution.
There are mainly two types of views:
- Simple View.
- Complex View.
Also
- Updatable Views.
- Read only Views.
Finally, we have Materialized Views.
View is used for the purposes as stated below:
- Security.
- Faster response.
- Solve complex query.
Syntax is:
CREATE or REPLACE view ([olumn1] [column2]...) AS SELECT column1 column2... FROM tablename [WHERE condition] [WITH read only] [WITH check option]
Subscribe
Login
0 Comments