6.7.5.3. Object Browser

The Object Browser contains an Actions list and a Schemata list, as seen in the following screenshot.

Figure 6.15. SQL Editor - Object Browser

SQL Editor - Object Browser

Object Browser Actions List

The Object Browser contains an Actions list. The actions are:

Schemata List

The Schemata list shows available schemata on the currently connected server. These can be explored to show tables, views, and routines within the schema.

Figure 6.16. SQL Editor - Schemata Explorer

SQL Editor - Schemata Explorer

It is possible to set a schema as the default schema by right-clicking the schema and selecting the Set As Default Schema menu item. This executes a USE schema_name statement so that subsequent statements without schema qualifiers are executed against this schema. This setting applies only to the query session. To set a default schema for multiple MySQL Workbench sessions, you must set the default schema for the stored connection. From the Home screen, click Manage Connections, then in the Manage DB Connection dialog, set the desired default schema on the Parameters tab.

A useful feature that was introduced in MySQL Workbench 5.2.9 is the ability to rapidly enter table, view, or column names into the SQL Statement area. Double-clicking a table, view, or column name in the schemata explorer inserts the name into the SQL Query area. This reduces typing significantly when entering SQL statements containing references to several tables, views, or columns.

The Object Browser also features a context menu which can be displayed by right-clicking an object. For example, right-clicking a table displays the following menu items:

Right-clicking an empty area inside the object browser displays the following menu items: