Loading...
Loading...
Write, review, and adapt SQL for PolarDB-X 2.0 Distributed Edition (Enterprise Edition) in AUTO mode, properly handle differences between PolarDB-X and MySQL (such as partitioned tables, Global Secondary Index (GSI), Columnar Index (CCI), Sequence, distributed transactions, table groups, TTL tables, etc.). Suitable for scenarios where you need to generate SQL to run on PolarDB-X, migrate MySQL SQL to PolarDB-X, or debug PolarDB-X SQL compatibility issues.
npx skill4agent add polardb/polardbx-skills polardbx-sqlPARTITION BYdbpartition/tbpartitionSHOW CREATE DATABASE db_name;
-- MODE = 'auto' in the output indicates AUTO modeSELECT VERSION();TDDL5.7.25-TDDL-5.4.19-20251031TDDL5.6.29-TDDL-5.4.12-16327949X-Cluster8.0.32-X-Cluster-8.4.20-20251017polardbx-standardSHOW CREATE DATABASE db_name;BROADCASTSINGLEKEYHASHEXPLAINEXPLAIN EXECUTEEXPLAIN SHARDINGEXPLAIN ANALYZESINGLEBROADCASTCLUSTERED COLUMNAR INDEXNEW SEQUENCEskills/polardbx-sql/references/create-table.mdskills/polardbx-sql/references/gsi.mdskills/polardbx-sql/references/cci.mdskills/polardbx-sql/references/sequence.mdskills/polardbx-sql/references/transactions.mdskills/polardbx-sql/references/mysql-compatibility-notes.mdskills/polardbx-sql/references/explain.mdskills/polardbx-sql/references/ttl-table.mdskills/polardbx-sql/references/online-ddl.md