PostgreSQL Drop唯一索引

问题描述 投票:0回答:1

我在Postgres中有以下语句来创建唯一索引:同步创建唯一索引organization_user_ux1 ON Organization_user(organization_id,user_id);

...我需要删除此唯一索引,所以我尝试了:

ALTER TABLE public.organization_user DROP INDEX Organization_user_ux1;

和收到的错误:错误:“ organization_user_ux1”或附近的语法错误 使用flyway执行这些脚本。

如何正确撤消此并发唯一索引?

postgresql flyway
1个回答
2
投票

阅读本文档以供参考Drop Index

© www.soinside.com 2019 - 2024. All rights reserved.