MySQL Views


  1. Which of the following does not support materialized view?











  1. 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.


  1. What can be used to check for views that have been invalidated by DROP or ALTER operations?











  1. 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.



  1. What cannot be done on a view?











  1. 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.


  1. A view can be deleted using the command __________.











  1. 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.



  1. Views are not updatable.











  1. 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.