Online Documentation for Data Generator for MySQL
Step 3 - Specifying generation parameters
At this step you can select fields for generating data and set various data generation parameters.
Selected tables are displayed in the Generate data for tree at the top-left side of the window. Table fields and their types are listed in the grid of the Field list area below.
Set the number of data records to be generated for each table.
Set this flag for a table to empty the table before data generation.
Click the Preview button to browse the selected table data in the preview mode.
When you select a table in the Generate data for tree, you can set data generation parameters for each of its fields within the Generation properties area at the right side of the window. Use the and the buttons to manage fields within the Field list area. For each field you can set the following:
Set NULL value in ... % of cases
Check this option and specify the percentage of NULL values for the field, if necessary.
Other generation parameters vary according to the data type of the selected field:
- FLOAT field parameters
- INTEGER field parameters
- DATE field parameters
- TIME field parameters
- STRING field parameters
- BLOB field parameters
- GEOMETRIC field parameters
- ENUM and SET field parameters
- BIT field parameters
If a field is part of a foreign key, you can select one of the following options for this field:
Generate data from the dependent field
Values for the field will be taken from the corresponding field(s) of the foreign table(s).
Generate data from list / SQL-query
If this option is selected you should specify the N value using the spin-edit box below. Data will be generated into the field related as 1:N, i.e. n records will be generated into the foreign table for each record of the primary table.
When you are done, press the Next button to proceed to the next step of the Wizard.