Managing Columns
After creating a table, you can create a new column, rename a column, and modify attributes in the table.
Creating a New Column
- Right-click Columns and select Create column.
The Add New Column dialog box is displayed prompting you to add information about the new column. Enter the details and click Add.
- You can view the added column in the corresponding table.
Data Studio displays the status of the operation in the status bar.
Toggle Not Null
Follow the steps below to set or reset the Not Null option:
- Right-click the selected column and select Toggle Not Null.
Data Studio displays the Toggle Not-null Property dialog box.
- Click OK to complete the operation successfully. Data Studio displays the status of the operation in the status bar.
Setting the Default Value of a Column
- Right-click the selected column and select Set Column Default Value.
A dialog box with the current default value (if it is set) is displayed, prompting you to provide the default value.
- Enter the value and click OK. Data Studio displays the status of the operation in the status bar.
Changing the Data Type
- Right-click the selected column and select Change Data Type.
Change Data Type dialog box is displayed.
The existing data type will be displayed as Unknown while you modify complex data types.
- Select the Data type Schema and Data Type. If the Precision/Size spin box is enabled, enter the required details and click OK. Data Studio displays the status of the operation in the status bar.
Renaming a Column
- Right-click the selected column and select Rename Column.
The Rename Column dialog box is displayed prompting you to provide the new name.
- Enter the name and click OK. Data Studio displays the status of the operation in the status bar.
Dropping a Column
- Right-click the selected column and select Drop Column. This operation deletes the column from the table.
A Drop Column dialog box is displayed.
- Click OK to complete the operation successfully. Data Studio displays the status of the operation in the status bar.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot