このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

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

Show all

Help Center/ GaussDB/ User Guide/ Database Use/ Overview of Database Usage

Overview of Database Usage

Updated on 2025-01-09 GMT+08:00

After creating a GaussDB instance, you can use DAS or SQL statements to perform basic database operations such as creating a database, creating a database user, creating tables, inserting data into tables, and deleting data from tables based on your requirements. For details, see Table 1.

Basic operations should comply with relevant design specifications. For details, see Development and Design Proposal.

You can also develop applications based on the JDBC, ODBC, libpq, Psycopg, ecpg, and Go drivers. For details, see Application Development Guide.

Table 1 Database operations

Database Operation

Description

Creating a database

These sections describe how to create a database using DAS and the CREATE DATABASE command.

Creating a database user

These sections describe how to use the CREATE USER command to create a database user. Data is not shared between users.

Creating a table

Creating a Table Using SQL Statements

A table is created in a database and can be stored in different databases. Tables under different schemas in a database can have the same name. This section describes how to use the CREATE TABLE command to create a table.

Inserting data to a table

Inserting Data to Tables Using SQL Statements

A new table contains no data. You need to insert data to the table before using it. This section describes how to insert one or more rows of data using the INSERT command.

Updating data in a table

Updating Data in a Table Using SQL Statements

You can update one row, all rows, or specified rows of data. You can also update data in a single column without affecting the data in the other columns. This section describes how to use the UPDATE command to update data in a table.

Viewing data in a table

These sections describe how to use SQL statements to view data in tables and how to open tables and view table details on the DAS console.

Deleting data from a table

Deleting Data from a Table Using SQL Statements

Outdated data in existing tables may need to be deleted. This section describes how to use SQL statements to delete tables or table data.

Creating and managing views

These sections describe how to create, query, and delete views using SQL statements, and how to open a view and view details of a view through DAS.

Creating and managing tablespaces

Creating and Managing Tablespaces Using SQL Statements

This section describes how to create tablespaces, create objects in tablespaces, query tablespaces, query tablespace usage, change tablespace names, and delete tablespaces.

Querying system catalogs

Querying System Catalogs Using SQL Statements

This section describes how to query system catalogs.

Creating and managing schemas

Creating and Managing Schemas Using SQL Statements

This section describes how to create a schema, use a schema, view the search path of a schema, control schema privileges, and delete a schema.

Creating and managing partitioned tables

Creating and Managing Partitioned Tables Using SQL Statements

This section describes how to create a partitioned table, insert data into a table, modify the row migration attributes of a partitioned table, delete a partition, add a partition, rename a partition, modify the tablespace of a partition, query a partition, and delete a partitioned table and tablespace.

Creating and managing indexes

Creating and Managing Indexes Using SQL Statements

This section describes how to create an index, modify the tablespace of an index partition, rename an index partition, query an index, and delete an index.

Creating and managing sequences

Creating and Managing Sequences Using SQL Statements

This section describes how to use a sequence to make a column a unique identifier.

Creating and managing scheduled jobs

Creating and Managing Scheduled Jobs Using SQL Statements

This section describes how to create a job, view job details, start a job, stop a job, modify job attributes, and delete a job.

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