多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 KiB

title description
Table Operations Table Operations: Row, Column, Quick Import, Export & Import

Once you have created a new NocoDB project you can open it, In the browser, the URL would be like example.com/#/default/<project_id>.

Table

Table Create

On project dashboard, click on Add new table button

table-create-button

Provide a name for the table & click Create Table button.

table-create-modal

After the successful submission, the table will be created and open on a new grid.

image

Table Rename

Right click on Table name on left hand project-tree menu, select Rename

image

In modal popup, enter new table name and click Submit button

image

Table Delete

Right click on Table name on left hand project-tree menu, select Delete

image

Click Yes to confirm the table deletion

image

Column

Column Add

Click the + icon on the right corner of the table.

image

After the click, it will show a menu and you can enter the column name and choose the column type. (See Column Types for the full list).

image

You can also click Show more for additional menu options.

Screenshot 2023-03-03 at 8 13 07 PM

Click Save button to create the new column.

image

Column Edit

To edit column properties, click the down arrow, select Edit from the menu.

image

You will be able to edit column name & associated datatype using pop-up modal. You can also click Show more for additional menu options.

image

Prior to v0.104.3, Advanced menu by default displayed developer specific database configuration options. To avoid unintended tweaks from user, these are now hidden under an easter egg menu. To enable, double click on show all/hide all button in column edit modal.

Screenshot 2023-03-06 at 10 45 26 AM

Column Delete

To delete a column, click the down arrow, select Delete from the menu.

image

Click Yes to confirm the column deletion.

image

Row

For adding new values to the table we need new rows, new rows can be added in two methods.

Row Add (Using Form)

  • Click the + icon in the toolbar of the table tab.
    image
  • Then you can enter the values and click Save row.
    image
  • After saving it will be there on your table.
    image

Row Add (Using Table Row at bottom of page)

  • Click the bottom row of the table + Add new row. image
  • A new empty row will be created image

Row Add (Pressing Enter Key from Previous Row)

When you finish editing a cell and press Enter, the cell in the next row with the same column will be highlighted.

image

Row Edit

You can start editing by any of the following methods

  • Double click on cell to edit
  • Click on cell and start typing (this way it will clear the previous content)
  • Click on cell and press enter to start editing
  • And it will automatically save on blur event or if inactive.

Row Delete

Right-click on anywhere in the row and then from the context menu select Delete Row option.

Bulk delete is also possible by selecting multiple rows by using the checkbox in first column and then Delete Selected Rows options from the right click context menu.

image

Quick Import

You can use Quick Import when you have data from external sources such as Airtable, CSV file or Microsoft Excel to an existing project by either

  • Hover Add new table button in table menu, click three dots, use Quick Import to create
  • Drag and drop CSV, JSON or Excel file to import
image

Import Airtable into an Existing Project

Import CSV data into an Existing Project

  • Hover Add new table button in table menu, click three dots, and click CSV file
  • Drag & drop or select files (at most 5 files) to upload or specify CSV file URL, and Click Import
    • Auto-Select Field Types: If it is checked, column types will be detected. Otherwise, it will default to SingleLineText.
    • Use First Row as Headers: If it is checked, the first row will be treated as header row.
    • Import Data: If it is checked, all data will be imported. Otherwise, only table will be created. image
  • You can revise the table name by double-clicking it, column name and column type. By default, the first column will be chosen as Display Value and cannot be deleted. image
  • Click Import to start importing process. The table will be created and the data will be imported. image

Import Excel data into an Existing Project

  • Hover Add new table button in table menu, click three dots, and click Microsoft Excel
  • Drag & drop or select file (at most 1 file) to upload or specify Excel file URL and Click Import.
    • Auto-Select Field Types: If it is checked, column types will be detected. Otherwise, it will default to SingleLineText.
    • Use First Row as Headers: If it is checked, the first row will be treated as header row.
    • Import Data: If it is checked, all data will be imported. Otherwise, only table will be created. image
  • You can revise the table name, column name and column type. By default, the first column will be chosen as Display Value and cannot be deleted.

:::note

If your Excel file contains multiple sheets, each sheet will be stored in a separate table.

:::

image
  • Click Import to start importing process. The table(s) will be created and the data will be imported to the corresponding table(s).

    image

Export Data

You can export your data from a table as a CSV file by clicking the down arrow next to Table name and hover on Download. Currently only CSV and XLSX formats are supported for export.

image

Import Data

You can import your data in CSV format to a table by clicking the down arrow next to Table name and hover on Upload. Currently only CSV format is supported for upload.

image