workbench-en.a4
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Creating Tables<br />
The Merge Table Options section is used to configure MERGE tables in MyISAM. To create a MERGE table, select MERGE<br />
as your storage <strong>en</strong>gine and th<strong>en</strong> specify the tables you wish to MERGE in the UNION TABLES dialog.<br />
You can also specify the action the server should take wh<strong>en</strong> users attempt to perform INSERT statem<strong>en</strong>ts on the merge table. See<br />
The MERGE Storage Engine for more information about MERGE tables. Again, this only applies to MyISAM tables. You may also<br />
select the Merge Method by selecting from the drop down list box.<br />
7.3.9. The Inserts Tab<br />
Use the Inserts tab to insert records into the table. Clicking the OPEN EDITOR ... button on the lower right hand side op<strong>en</strong>s the<br />
Standard Inserts editor. Use this editor to add records to the table.<br />
Wh<strong>en</strong> you have finished adding records, press OK. The records you have added are displayed in the Inserts tab. Reop<strong>en</strong>ing the<br />
editor displays all the records shown in the Inserts tab. To edit a record simply click on the field you wish to change and <strong>en</strong>ter<br />
the new data. To delete a record, click the button on the left beside the desired row and th<strong>en</strong> press the Delete key. You can select<br />
and delete all records by clicking in the top left hand column of the editor and th<strong>en</strong> pressing the Delete key. Your changes will not<br />
be applied until you press the OK button. To back out of an operation, press the CANCEL button.<br />
Any records you add will be inserted wh<strong>en</strong> you forward <strong>en</strong>gineer the database (if you choose the G<strong>en</strong>erate INSERT statem<strong>en</strong>ts<br />
for tables option).<br />
7.3.10. The Privileges Tab<br />
Use the Privileges tab to assign specific roles and privileges to a table. You may also assign privileges to a role using the role<br />
editor. For a discussion of this topic see Section 6.4.3.1, “Adding Roles”.<br />
Wh<strong>en</strong> this tab is first op<strong>en</strong>ed, all the roles that have be<strong>en</strong> created are displayed in the list box on the right. Move the roles you wish<br />
to associate with this table to the ROLES list box on the left. Do this by selecting a role and th<strong>en</strong> clicking the < button. Use the Shift<br />
key to select multiple contiguous roles and the Ctrl key to select non-contiguous roles.<br />
To assign privileges to a role click on a role in the ROLES list box. Doing this displays all available privileges in the ASSIGNED<br />
PRIVILEGES list box. The privileges that display are:<br />
• ALL<br />
• CREATE<br />
• DROP<br />
• GRANT OPTION<br />
• REFERENCES<br />
• ALTER<br />
• DELETE<br />
• INDEX<br />
• INSERT<br />
• SELECT<br />
• UPDATE<br />
• TRIGGER<br />
You can choose to assign all privileges to a specific user or any other privilege listed in the preceding. Privileges irrelevant to a<br />
specific table, the FILE privilege for example, are not shown.<br />
If a role has already be<strong>en</strong> granted privileges on a specific table, those privileges show as already checked in the ASSIGNED PRIV-<br />
ILEGES list box.<br />
42