PolarDB-X is highly compatible with the MySQL protocol and the SQL syntax of MySQL. However, the architecture of a distributed database differs from that of a standalone database. Therefore, specific limits are imposed on the SQL statements used in PolarDB-X.

This topic describes the limits on identifies, resources, and SQL statements that are involved in the database development in PolarDB-X.

Limits on common identifiers

IdentifierMaximum lengthLimits
Database32The value can contain uppercase and lowercase letters, digits, and underscores (_).
Sequence128The value can contain only characters that are encoded by using the Unicode standard.
Partition16
Table64
Column
Partition Key
View
Variables
Constraint

Limits on resource usage

ResourceTypeQuantity
Logical resourcesDatabaseEach cluster can contain a maximum of 32 databases.
TableEach database can contain a maximum of 8,192 tables.
PartitionEach table can contain a maximum of 8,192 partitions.
ColumnEach table can contain a maximum of 1,017 columns.
SequenceEach database supports a maximum of 16,384 sequences.
ViewEach database supports a maximum of 8,192 views.
Global IndexEach table supports a maximum of 32 global indexes.
UserEach database supports a maximum of 2,048 users. A username contains a maximum of 255 characters.
Physical resourcesThe maximum number of connections supported by a compute node in a databaseBy default, a compute node supports a maximum of 20,000 connections.
The maximum number of compute nodes that can be added to a database at a timeBy default, you can add a maximum of 99 nodes at a time. If you want to add more nodes at a time, contact Alibaba Cloud technical support.
The maximum number of storage nodes that can be added to a database at a time

Limits on SQL syntax

CategoryOperationLimit
Custom operationsUser-defined function Supported.
Custom data type Not supported.
Stored procedure Supported.
Trigger Not supported.
Cursor Not supported.
View Supported.
DDLCREATE TABLE ... LIKE ...Partitioned tables are not supported.
CREATE TABLE ... SELECT ...Partitioned tables are not supported.
CREATE TABLE ... Generated Column ...Supported.
RENAME TABLESupported.
ALTER TABLESupported.
MERGE, SPLIT, ADD and DROP statements on subpartition tables Not supported.
MERGE, SPLIT, ADD and DROP statements on partitioned index tables Not supported.
Foreign key Not supported.
DMLSTRAIGHT_JOIN Not supported.
NATURAL JOIN Not supported.
INSERT DELAYED Not supported.
Variable references or operations, such as SET @c=1, @d=@c+1; SELECT @c, @d Not supported.
LOAD XML Not supported.
DQLSubqueries included in the HAVING clause. Not supported.
Subqueries included in JOIN operations with the ON clause Not supported.
The Subquery as Scalar Operand Not supported.
Database managementSHOW WARNINGS The combination of LIMIT and COUNT is not supported for this statement.
SHOW ERRORSThe combination of LIMIT and COUNT is not supported for this statement.
HELP Not supported.
Operator:= Not supported.
FunctionFull-text search functions Not supported.
XML functions Not supported.
Functions used with global transaction identifiers Not supported.
TypeSpatial data types, such as GEOMETRY and LINESTRING Not supported.
JSON data types Columns of JSON data types cannot be used as partition keys.
KeywordMILLISECOND Not supported.
MICROSECOND Not supported.