Views can also be added to an EER Diagram using the
View
tool on the vertical toolbar. Make sure
that the EER Diagram tab is selected, then
left-click the view icon on the vertical toolbar. The view icon is
the two overlapping rectangles found below the table icon.
Clicking this icon changes the mouse pointer to a view pointer. To change the mouse pointer to a view pointer from the keyboard, use the V key.
Choosing the View
tool changes the contents of
the toolbar that appears immediately below the main menu bar. When
the Views
pointer is active, this toolbar
contains a schemas list and a color chart list. Use these lists to
select the appropriate schema and color accent for the new view.
Make sure that you associate the new view with a database. The
color of your view can be changed using the
Properties
palette.
Create a view by clicking anywhere on the EER Diagram canvas. This
creates a new view with the default name view1
.
To revert to the default mouse pointer, click the arrow icon at
the top of the vertical toolbar.
Right-clicking a view opens a pop-up menu. With the exception of the delete item, these menu items function as described in Section 9.1.5.1, “Adding Views to the Physical Schemas”. The behavior of the delete option is determined by your MySQL Workbench options settings. For more information, see Section 3.2.4, “Modeling Preferences”.