Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Editing Table Data

Updated on 2023-03-17 GMT+08:00

Follow the steps below to edit table data:

  1. Right-click the selected table and select 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:

Insert

Follow the steps to insert a row:

  1. Click to insert a row.
  2. Double-click the cell to modify and enter the required details in the row.
  3. Click to save changes.

    The Edit Table Data tab status bar shows the Query Submit Time, Number of Rows Fetched, Execution Time and Status of the operation.

    NOTICE:

    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.

    NOTE:
    • Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.
    • Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the Edit Table Data tab.
    • Clicking Save either saves all the valid changes or does not save anything if there are invalid changes. Refer to Editing Table Data to set the behavior of save operation.

  4. Click to roll back the changes that are not saved.
  5. Set the preference to define:

    • Number of records to be obtained
    • Column width
    • Copy option from result set

      For details, see Query Results.

Data Studio allows you to edit the distribution key column only for a new row.

Delete

Follow the steps to delete a row:

  1. Click the row header of the row to be deleted.
  2. Click to delete a row.
  3. Click to save changes. The Define Unique Key dialog box is displayed.
  4. Click the required option:

    • Use All Columns

      Click Use All Columns to define all columns as unique key.

    • Custom Unique Key
      1. Click Custom Unique Key to define selected columns as unique key.
      2. The Define Unique Key dialogue box is displayed.
      3. Select the required columns and click OK.
    • Cancel

      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 wind

    NOTE:
    • Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.
    • Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the Edit Table Data tab.
    • Clicking Save either saves all the valid changes or does not save anything if there are invalid changes. For details, see Editing Table Data.

  5. Click to roll back the changes that are not saved.
  6. Refresh the table data to view deleted duplicate rows.

Update

Follow the steps to update cell data:

  1. Double-click the cell to update the contents of the cell.
  2. Click to save changes.

    The Define Unique Key dialog box is displayed.

  3. Click the required option:

    • Use All Columns

      Click Use All Columns to define all columns as unique key.

    • Custom Unique Key
      1. Click Custom Unique Key to define selected columns as unique key.
      2. The Define Unique Key dialogue box is displayed.
      3. Select the required columns and click OK.
    • Cancel

      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 wind
      NOTE:
      • Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.
      • Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the Edit Table Data tab.
      • Clicking Save either saves all the valid changes or does not save anything if there are invalid changes. For details, see Editing Table Data.

  4. Click to roll back the changes that are not saved.
  5. Refresh the table data to view deleted duplicate rows.

During the 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.

Copy

You can copy data from the Edit Table Data tab.

Follow the steps to copy data:

  1. Select the cell(s) and click (Copy) or (Advanced Copy).

    For more information about the differences between Copy and Advanced Copy, see Executing SQL Queries.

    NOTE:
    • Data can be copied to include the row number and/or column header. Refer to Query Results to set this preference.
    • To copy part of a cell, select the desired part and press Ctrl+C or click .

Pastes content

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:

  1. Copy data from the CSV file.
  2. Select the cell(s) and click .
  3. Click to save changes. The Define Unique Key dialog box is displayed.
  4. Click the required option:

    • Use All Columns

      Click Use All Columns to define all columns as unique key.

    • Custom Unique Key
      1. Click Custom Unique Key to define selected columns as unique key.
      2. The Define Unique Key dialogue box is displayed.
      3. Select the required columns and click OK.
    • Cancel

      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 wind

      NOTE:
      • The number of copied cells from CSV must match the number of cells selected in the Edit Table Data tab to paste the data.
      • Click to roll back the changes that are not saved.
      • Changes to cells in a row that are not saved are highlighted in green. Once saved the color resets to default color.
      • Unsaved records are highlighted in red. The number of successful and failed records are displayed in the status bar of the Edit Table Data tab.
      • Clicking Save either saves all the valid changes or does not save anything if there are invalid changes. For details, see Editing Table Data.

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.

NOTE:

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..

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback