U1100003: SERIAL in GaussDB and SERIAL in MariaDB are not equivalent
Description
Database Type and Version
- Source database type and version: all MariaDB versions
- Target database type and version: all GaussDB versions
Syntax Example
SERIAL in MariaDB is equivalent to BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE and holds 8-byte values.
In GaussDB, SERIAL is signed and holds 4-byte values, BIGSERIAL is signed and holds 8-byte values, and LARGESERIAL is signed and holds 16-byte values by default.
CREATE TABLE test_serial(
C1 SERIAL,
C2 VARCHAR(10)
);
Suggestion
Modify Support for SERIAL.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot