Advanced options enable you to manage the way MySQL for Excel exports data from worksheets to MySQL tables. Useto restore the original option selections and values.
A set of advanced options affect the current export-data operation, as described in the sections that follow.
The following figure shows the column options that apply to export-data operations.
Use the first
100(default) Excel data rows to preview and calculate data types: This determines the number of rows that the preview displays and the values that affect the automatic mapping feature.
Analyze and try to detect correct data type based on column field contents: Attempts to analyze the data and determine the data type for the column. The column type is defined as
VARCHARif it contains multiple types.
Add additional buffer to Varchar length (round up to 12, 25, 45, 125, 255): When the data type is automatically detected and is set to
VARCHAR, then it calculates the maximum length for all rows within the column, and rounds up the maximum length to one of the defined lengths above.
If deselected, then the
Varcharlength is set to the length of the longest entry in the Excel worksheet.
Automatically check the Index checkbox for Integer columns: If selected (default), columns with an Integer data type will have the Create Index option selected by default.
Automatically check the Allow Empty checkbox for columns without an index: If selected (default), columns without the Create Index check box selected will automatically enable the Allow Empty configuration option.
Show all available MySQL data types in the Data Type drop-down list: By default, only the most commonly used data types are displayed. Select (deselected by default) this setting to see a list of all MySQL data types.Note
This option was added in MySQL for Excel 1.3.0
The following figure shows the field data options that apply to export-data operations.
Field Data Options
Use formatted values: When selected (default), the data from Excel is treated as
Date. When deselected, data is never treated as a
Datetype, so for example this means that a date would be represented as a number.
The following figure shows the SQL query options apply to export-data operations.
SQL Query Options:
Generate an INSERT statement for each data row: When selected, an
INSERTstatement for each data row being exported is generated in the resulting SQL query sent to the MySQL server. Otherwise, a single
INSERTstatement is generated as a bulk data operation, which performs better than multiple
INSERTstatements. This option is deselected by default.
Create table's indexes after data has been exported to speed-up rows insertion: This saves disk I/O for bulk inserts (thousands of rows) because re-indexing will not happen every time a row is inserted, but only once at the end of the data insertion. This option is selected by default.Note
This option was added in MySQL for Excel 1.2.1.
The following option was
MySQL for Excel 1.2.1. Now, the default behavior is to always remove
empty columns from the calculations.
Remove columns that contain no data, otherwise flag them as "Excluded": If selected, columns without data in Excel are removed and not shown in the preview window. If deselected (default), these columns will exist but have the Exclude Column option checked.