LOCK TABLES table_test WRITEUNLOCK TABLESLOCK TABLES table_test READUNLOCK TABLES
Parameter | Description |
Target Database | Supports selecting the database to be executed. |
File Type | Supported file types: SQL, CSV, and Excel. SQL: After selecting the SQL file type, choose the import file accordingly. More: Click to Display, and select whether to ignore foreign keys. CSV and Excel: After selecting CSV or Excel, configure the following additional parameters: Import Table: Select the table to which the data will be imported. Lock Table: Select whether to lock the table. To ensure consistency of the exported data, you are advised to enable table locking (read lock). Column Name: Specify whether the import file contains column names. Import Method: Choose between Insert or Replace. Separator: Any string can be used as a delimiter except double quotes (") and the Tab key. The default is a comma (,). Applicable to CSV files only. The delimiter takes effect when reading the data, splitting each row into different fields. For example, if a row contains "ad","po","vb", and the delimiter is a comma, the row will be split into three fields, each corresponding to a column name. These values are used as insert values when generating SQL statements. |
File Encoding | Select the file encoding format, including utf8, gbk, gb2312, and latin1. |
Import File | Click Click to Upload to upload a local file, or drag and drop the file to the designated area. Only .sql and .csv files within 3 GB and .xlsx files within 10 MB are allowed. |

Parameter | Description |
Export Solution | Select the export method: Export Table: Export by table. Export SQL Statement: Export the query results based on a custom SQL statement. Note: When Export SQL Statement is selected, JOIN, subquery, and other complex SQL statements are not supported for export. Reference syntax: select * from ruirui_test where id > 5 order by id desc limit 30; |
Target Database | Select the database to be exported. |
Target Table | Select the export scope (only displayed under the Export Table solution): All Tables: Export all tables in the selected database. Partial Tables: Customize the tables to be exported. |
File Type | Select the export file format: SQL, CSV, or Excel. The file size must not exceed 3 GB. |
File Encoding | Select the file encoding format, including utf8, utf8mb4, gbk, gb2312, and latin1. |
Exported Content | Only displayed when SQL file type and Export Table solution are selected: Data: Export table data only. Structure: Export table structure only. Data and structure: Export both table structure and data. |
Export Execute SQL | Only displayed under the Export SQL Statement solution. Enter the SQL statement to be executed for exporting the results. |
Advanced Option | Click to expand and configure the following advanced parameters (only displayed when Export Table solution and SQL file type are selected). |
Lock Table | Specify whether to lock the table during export. Disabled by default (table is not locked). Caution: Locking the table ensures data consistency during the export process, but you need to be aware that read locks will be applied to the tables to be exported. Write operations will be blocked until the locks are released. |
Export Object | Select the database objects to be exported, including Event, Trigger, View, and Stored procedures and functions. |
Data Option | When selected, dump binary fields using hexadecimal notation during export. |
Others | Configure additional export options: Compress Multiple Insert Statements for Batch Write: Merge multiple INSERT statements to improve write efficiency. Generate a DROP statement before CREATE statement: Add a corresponding DROP statement before each CREATE statement. Generate a TRUNCATE TABLE statement before INSERT statement: Add a TRUNCATE TABLE statement before each INSERT statement. Note: When Generate a DROP statement before CREATE statement is enabled, the differences between regular tables and views are as follows: Regular table: A DROP TABLE statement is added before the CREATE statement (if the table exists). Example: DROP TABLE IF EXISTS xxx;View: A statement to delete the view is added before the CREATE VIEW statement. Example: DROP VIEW IF EXISTS xxx;When Generate a TRUNCATE TABLE statement before INSERT statement is enabled, all existing data in the target table will be cleared before the INSERT operation is performed to insert the new data. The cleared data cannot be restored, so use this option with caution. |

Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários