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
Provide a name for the table & click Create Table
button.
After the successful submission, the table will be created and open on a new grid.
Table Rename
Right click on Table name on left hand project-tree menu, select Rename
In modal popup, enter new table name and click Submit
button
Table Delete
Right click on Table name on left hand project-tree menu, select Delete
Click Yes to confirm the table deletion
Column
Column Add
Click the +
icon on the right corner of the table.
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).
You can also click Show more
for additional menu options.
Click Save
button to create the new column.
Column Edit
To edit column properties, click the down arrow, select Edit
from the menu.
You will be able to edit column name & associated datatype using pop-up modal. You can also click Show more
for additional menu options.
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.
Column Delete
To delete a column, click the down arrow, select Delete
from the menu.
Click Yes
to confirm the column deletion.
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.
- Then you can enter the values and click
Save row
.
- After saving it will be there on your table.
Row Add (Using Table Row at bottom of page)
- Click the bottom row of the table
+ Add new row
. - A new empty row will be created
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.
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.
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
Import Airtable into an Existing Project
- See here
Import CSV data into an Existing Project
- Hover
Add new table
button in table menu, click three dots, and clickCSV 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.
- Auto-Select Field Types: If it is checked, column types will be detected. Otherwise, it will default to
- 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.
- Click
Import
to start importing process. The table will be created and the data will be imported.
Import Excel data into an Existing Project
- Hover
Add new table
button in table menu, click three dots, and clickMicrosoft 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.
- Auto-Select Field Types: If it is checked, column types will be detected. Otherwise, it will default to
- 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.
:::
-
Click
Import
to start importing process. The table(s) will be created and the data will be imported to the corresponding table(s).
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.
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.