|
|
|
@ -3,3 +3,31 @@ title: 'Actions on table'
|
|
|
|
|
--- |
|
|
|
|
import Tabs from '@theme/Tabs'; |
|
|
|
|
import TabItem from '@theme/TabItem'; |
|
|
|
|
|
|
|
|
|
## Rename table |
|
|
|
|
|
|
|
|
|
1. Open the table context menu by clicking on `...` from the left sidebar. |
|
|
|
|
2. Click on `Rename` option. |
|
|
|
|
3. Enter new table name. |
|
|
|
|
4. Click on `Rename` button. |
|
|
|
|
|
|
|
|
|
![image](/img/v2/table-context-menu-xcdb.png) |
|
|
|
|
![image](/img/v2/rename-table.png) |
|
|
|
|
|
|
|
|
|
## Duplicate table |
|
|
|
|
|
|
|
|
|
1. Open the table context menu by clicking on `...` from the left sidebar. |
|
|
|
|
2. From the dropdown, select `Duplicate` option. |
|
|
|
|
3. Optional configurations |
|
|
|
|
a) `Include data` : You can choose to duplicate the table with or without data. |
|
|
|
|
b) `Include views` : You can choose to duplicate the table with or without views. |
|
|
|
|
4. Click on `Rename Table` button on the confirmation modal. |
|
|
|
|
5. New table will be created with the same schema and data/view as in the original table, based on configurations as specified in step (3). |
|
|
|
|
|
|
|
|
|
:::info |
|
|
|
|
- Duplicate table will be created in the same base as the original table |
|
|
|
|
- Duplicate table will carry suffix ` Copy` in its name. |
|
|
|
|
- Duplicate table option is not available for `External DB` projects |
|
|
|
|
::: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|