删除外键postgresql时出错

删除外键postgresql时出错,postgresql,Postgresql,我正在使用以下查询: alter table hlt_citas drop constraint Ref_hlt_citas_to_hlt_atencion; alter table hlt_citas drop constraint "Ref_hlt_citas_to_hlt_atencion"; 当我查询表的结构时,外键的部分如下所示: "Ref_hlt_citas_to_hlt_atencion" FOREIGN KEY (cod_atencion) REFERENCES hlt_at

我正在使用以下查询:

alter table hlt_citas drop constraint Ref_hlt_citas_to_hlt_atencion;
alter table hlt_citas drop constraint "Ref_hlt_citas_to_hlt_atencion";
当我查询表的结构时,外键的部分如下所示:

"Ref_hlt_citas_to_hlt_atencion" FOREIGN KEY (cod_atencion)
REFERENCES hlt_atencion(cod_atencion) ON UPDATE CASCADE ON DELETE RESTRICT

但是当我运行查询时,它告诉我它不存在。

当列或约束名称等标识符以双引号给出时,标识符将区分大小写。然后还应在查询中使用双引号以保持区分大小写: