Renaming a table referenced by a view
If the table that you are going to rename is referenced by a view, the view will become invalid if you rename the table, and you have to adjust the view manually.
For example, we create a view named v_employee_info based on the employees and departments tables as follows: