MySQL Views
- Which of the following does not support materialized view?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In MySQL, ‘Views’ are treated a little differently than Oracle, PostgreSQL and SybaseSQL since they support materialized views and MySQL does not use the materialized view.
- What can be used to check for views that have been invalidated by DROP or ALTER operations?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
A ‘View’ is created in MySQL by writing the clause ‘CREATE VIEW’ followed by the view name. Once a view is dropped or altered after being created, it can be checked by the ‘CHECK TABLE’ clause.
- What cannot be done on a view?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, ‘Views’ act as virtual tables. It is not possible to create indexes on a view. However, they can be used for the views that are processed using the merge algorithm.
- A view can be deleted using the command __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
In MySQL, ‘Views’ act as virtual tables. Many operations can be performed on views like the operations on tables. A view can be created, displayed and dropped. They can also be used to perform calculations.
- Views are not updatable.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, some ‘Views’ are updatable. The operators ‘INSERT’, ‘DELETE’ and ‘UPDATE’ can be used. They can be operated on the ‘Views’ to make changes to it. A table can be created and set as a view.