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

DB_TAB_COLUMNS

Updated on 2024-05-07 GMT+08:00

DB_TAB_COLUMNS displays description information about columns of tables and views accessible to the current user. This view exists in both PG_CATALOG and SYS schema. This view is accessible to all users and displays all information accessible to the current user.

Table 1 DB_TAB_COLUMNS columns

Name

Type

Description

owner

character varying(64)

Table owner.

table_name

character varying(64)

Table name.

column_name

character varying(64)

Column name.

data_type

character varying(128)

Data type of the column.

data_type_mod

character varying(3)

Not supported. Its value is NULL.

data_type_owner

character varying(128)

Owner of the data type of a column.

data_length

integer

Length of the column, in bytes.

data_precision

integer

Precision of the data type. This parameter is valid for the numeric data type and NULL for other types.

data_scale

integer

Number of decimal places. This parameter is valid for the numeric data type and 0 for other data types.

nullable

bpchar

Specifies whether the column can be empty (n for the primary key constraint and non-null constraint).

column_id

integer

Sequence number of the column when the table is created.

default_length

numeric

Length of the default value of a column, in bytes.

data_default

text

Default value of a column.

num_distinct

numeric

Number of different values in a column.

low_value

raw

Minimum value in a column.

high_value

raw

Maximum value in a column.

density

numeric

Column density.

num_nulls

numeric

Number of empty values in a column.

num_buckets

numeric

Number of buckets in the histogram of a column.

last_analyzed

date

Last analysis date.

sample_size

numeric

Sample size used to analyze a column.

character_set_name

character varying(44)

Not supported. Its value is NULL.

char_col_decl_length

numeric

Declaration length of a column of the character type.

global_stats

character varying(3)

Not supported. Its value is NO.

user_stats

character varying(3)

Not supported. Its value is NO.

avg_col_len

numeric

Average length of a column, in bytes.

char_length

numeric

Column length (in the unit of bytes) which is valid only for varchar, nvarchar2, bpchar, and char types.

char_used

character varying(1)

Not supported. Set it to B if the data type is varchar, nvarchar2, bpchar, or char, and to NULL for other data types.

v80_fmt_image

character varying(3)

Not supported. Its value is NULL.

data_upgraded

character varying(3)

Not supported. Its value is YES.

histogram

character varying(15)

Specifies whether the histogram exists and the type of the histogram if it exists.
  • NONE: no histogram.
  • FREQUENCY: frequency histogram.
  • EQUI_WIDTH: equal-width histogram.

default_on_null

character varying(3)

Not supported. Its value is NULL.

identity_column

character varying(3)

Not supported. Its value is NULL.

evaluation_edition

character varying(128)

Not supported. Its value is NULL.

unusable_before

character varying(128)

Not supported. Its value is NULL.

unusable_beginning

character varying(128)

Not supported. Its value is NULL.

collation

character varying(100)

Collation rule of a column. This column conflicts with reserved keywords. Therefore, add the view name when calling this column.

comments

text

Comments.

schema

character varying(64)

Name of the namespace to which the column belongs.

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