Follow the steps below to edit table data:
The Edit Table data tab is displayed.
Refer to Viewing Table Data for description on copy and search toolbar options.
Data Studio validates only the following data types entered into cells:
Bigint, bit, boolean, char, date, decimal, double, float, integer, numeric, real, smallint, time, time with time zone, time stamp, time stamp with time zone, tinyint, and varchar.
Editing of array type data type is not supported.
Any related errors during this operation reported by database will be displayed in Data Studio. Time with time zone and timestamp with time zone columns are non-editable columns.
You can perform the following operations in the Edit Table Data tab:
The Edit Table Data tab status bar shows the Query Submit Time, Number of rows fetched, Execution time and Status of the operation.
Data Studio updates rows identified by the unique key. If a unique key is not identified for a table and there are identical rows, then an update operation made on one of the rows will affect all identical rows. Refresh the Edit Table Data tab to view the updated rows.
Refer to Query Results for more information.
Data Studio allows you to edit the distribution key column only for a new row.
Define unique key dialog box is displayed.
Click Use All Columns to define all columns as unique key.
Click Cancel to modify the information in Edit Table Data tab.
The Edit Table Data tab status bar shows the Query Submit Time, Number of rows fetched, Execution time and Status of the operation.
Select Remember the selection for this window option to hide the unique definition window from displaying while continuing with the edit table data operation. Click from Edit Table Data toolbar to clear previously selected unique key definition and display unique definition window again.
Define unique key dialog box is displayed.
Click Use All Columns to define all columns as unique key.
Click Cancel to modify the information in Edit Table Data tab.
The status bar shows the Execution Time and Status of the operation.
Select Remember the selection for this window option to hide the unique definition window from displaying while continuing with the edit table data operation. Click from Edit Table Data toolbar to clear previously selected unique key definition and display unique definition window again.
During edit operation, Data Studio does not allow you to edit the distribution key column as it is used by the DB to locate data in the database cluster.
You can copy data from the Edit Table Data tab.
Follow the steps to copy data:
Refer to Executing SQL Queries to understand the difference between copy and advanced copy.
You can copy data from a CSV file and paste it into cells in the Edit Table Data tab to insert and update records. If you paste onto existing cell data, the data is overwritten with the new data from the CSV file.
Follow the steps to paste data into a cell:
The Define Unique Key dialogue box is displayed.
Click Use All Columns to define all columns as the unique key.
Click Cancel to modify the information in the Edit Table Data tab.
The status bar shows the Execution Time and Status of the operation.
Select Remember the selection for this window to hide the unique definition window from displaying while continuing with the edit table data operation. Click from the Edit Table Data toolbar to clear previously selected unique key definition and display the unique definition window again
During the pasting operation, Data Studio does not allow you to edit the distribution key column as it is used by the DB to locate data in the database cluster.
Empty cells are shown as [NULL]. Empty cell in Edit Table Data tab can be searched using the Null Values search drop-down.
Refer to Executing SQL Queries for information on show/hide search bar, sort, column reorder, and encoding options.