Help Center/ Database and Application Migration UGO/ User Guide/ Syntax Conversion/ Conversion Error Codes/ Error Codes Generated During Conversion from Oracle to GaussDB/ U0100067: CREATE TABLE AS cannot be used to create partitioned tables in GaussDB
Updated on 2026-07-15 GMT+08:00
U0100067: CREATE TABLE AS cannot be used to create partitioned tables in GaussDB
Description
In GaussDB, CREATE TABLE AS cannot be used to create partitioned tables.
Database Type and Version
- Source database type and version: Oracle versions supported by UGO
- Target database type and version: GaussDB of versions earlier than V2.0-8.100
Syntax Example
CREATE TABLE sales_interval_part
PARTITION BY RANGE (sale_date)
INTERVAL ('1 MONTH')
(
PARTITION p_hist VALUES LESS THAN (TO_DATE('2023-01-01', 'YYYY-MM-DD'))
)
AS
SELECT sale_id, sale_date, product_id, region, amount
FROM sales_source
WHERE sale_date >= DATE '2023-01-01'; Suggestion
Create a partitioned table and then insert data using INSERT INTO SELECT.
Modified SQL statements compatible with GaussDB:
CREATE TABLE sales_interval_part (
sale_id numeric,
sale_date timestamp without time zone,
product_id text,
region text,
amount numeric
)
PARTITION BY RANGE (sale_date)
INTERVAL ('1 mon')
(
PARTITION p_hist VALUES LESS THAN ('2023-01-01 00:00:00') TABLESPACE pg_default
);
insert into sales_interval_part SELECT sale_id, sale_date, product_id, region, amount
FROM sales_source
WHERE sale_date >= DATE '2023-01-01'; What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot