Related operations on table data
For a series of operations on the table, we will introduce them separately:
Open Table
: open the table structure to view dataQuery console
: Create a new console based on this databasePin
: pin listCopy name
: copy the table nameView DDL
: View the DDL statements of the tableCopy table
: Copy the table. You can choose to copy the table structure and table dataTruncate Table
: Clear the tableEdit Table
: Edit the table (table name, comments, column names, primary key...)Export as SQL file
: Export to SQL file. You can choose to export the table structure and table dataImport Data
: Import files in CSV, XLSX, XLS, SQL formatExport Data
: Export data files in CSV, XLSX, XLS, SQL formatDelete Table
: delete tableGenerate Test Data
: Generate test data for developers to use
View data
When you double-click a table in Database Explorer (View | Tool Windows | Database Explorer), the table, view, opens in the Data Editor.
Or you can right-click the mouse to select the table you want to view and click Open Table
to view it!
Edit data
You can make modifications directly in the table. After modifying the data, submit it and the modification will be successful!
When our field names are too long to be modified or viewed directly from the table, we can select the data to be viewed or modified, then right-click and click View/Edit Data
to view and edit the page.
In addition, you can also view the DDL statements for specific modification operations:
Refresh data
If you want to synchronize the data you see in the editor with the contents of the database, you need to reload the table view's data.
- Click the
refresh
button on the toolbar.
- Right-click on the table and select Reload Page from the context menu.
Row and row operations
When we select a row of data, right-clicking the mouse will perform the following operations:
Insert SQL
: Copy the entire row of data into an Insert SQL statement
Update SQL
: Copy the entire row of data to the Update SQL statement
TAB delimited (data)
: copy the entire row of data
TAB delimited (field name)
: Copy the field name corresponding to the entire row of data
Tab-separated (field names and data)
: Copy the entire row of data and its corresponding field names
-
Clone row
: Clone the entire row of data -
Delete row
: delete the entire row of data
Tips:
- If you want to copy multiple rows of data, please use
Shift + left mouse button
to select multiple rows for operation. - If you want to copy the entire row of data in the table, you can left-click the blank area in the upper left corner of the mouse to select all (as shown below)
Table data operations
View/Edit Data
: View/edit dataCopy
: Copy selected single dataCopy the row as
: Same as above...Clone row
: Clone row dataSet NULL
: Set table data to nullSet DEFAULT
: Set table data to default valueDelete row
: delete row