欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

你好,能问下关于PolarDB-x的问题吗?它是否不支持为单个表创建二级索引呢?属于SQL查询范畴的未分类问题。

最编程 2024-07-23 12:48:21
...

Hi 咨询一下,PolarDB-x 单表不支持添加二级索引吗?uncategorized SQLException for SQL [CREATE TABLE IF NOT EXISTS snow_namespace.snow_product_test(ID int NOT NULL AUTO_INCREMENT,PRODUCT_NAME varchar(255) DEFAULT NULL,ADDRESS varchar(255) DEFAULT NULL,CITY text DEFAULT NULL,CREATE_TIME datetime(6) DEFAULT NULL,PRIMARY KEY (ID),INDEX IDX_1_PRODUCT_NAME (PRODUCT_NAME))]; SQL state [HY000]; error code [5302]; [15287e34b9401000][11.197.5.95:3075][snow_data_dev]ERR-CODE: [TDDL-5302][ERR_GLOBAL_SECONDARY_INDEX_UNSUPPORTED] Adding global index on other schema is forbidden, so please login with corresponding schema. ; nested exception is java.sql.SQLException: [15287e34b9401000][11.197.5.95:3075][snow_data_dev]ERR-CODE: [TDDL-5302][ERR_GLOBAL_SECONDARY_INDEX_UNSUPPORTED] Adding global index on other schema is forbidden, so please login with corresponding schema.

推荐阅读