19.10.2015 Views

workbench-en.a4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Tables<br />

Figure 7.2. The table editor<br />

The MySQL Table Editor consists of a work space divided into the following tabs:<br />

• TABLE: Use this table to edit features that apply to the table as a whole<br />

• COLUMNS: Use this tab to add or modify columns<br />

• INDEXES: Use this tab to add or modify indexes<br />

• FOREIGN KEYS: Use this tab to add or modify foreign keys<br />

• TRIGGERS: Use this tab to add or modify triggers<br />

• PARTITIONING: Use this tab to manage partitioning<br />

• OPTIONS: Use this tab to add or modify various g<strong>en</strong>eral, table and row level options<br />

• INSERTS: Use this tab for writing INSERT statem<strong>en</strong>ts<br />

• PRIVILEGES: Use this tab to set privileges on the table<br />

Each of these tabs is discussed in further detail in the following sections.<br />

7.3.2. The Table Tab<br />

Use this tab to edit the table name or add a comm<strong>en</strong>t to the table. Easily change the collation or the table <strong>en</strong>gine using drop down<br />

list boxes.<br />

7.3.3. The Columns Tab<br />

The Columns tab is used to display and edit all the column information for a table. Using this tab, you can add, drop, and alter<br />

columns.<br />

You can also use the column tab to change the name, data type, default value, and other properties of your table's columns.<br />

Figure 7.3. The columns tab<br />

38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!