postgresql和django - 没有这个行的唯一标识符 [英] postgresql and django - No unique identifier for this row

查看:219
本文介绍了postgresql和django - 没有这个行的唯一标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Django postgresql数据库中的两个条目导致我一个麻烦的世界,当我去查询创建报告。当我尝试删除这些条目(通过phpPgAdmin),我得到错误没有这个行的唯一标识符。没有重复的ID。我已经尝试更新所有的字段。我已经尝试使用删除按钮和手动的SQL命令摆脱这些。我没有想法任何人都很热,给行一个唯一的标识符,所以我可以摆脱它?

Two entries on my Django postgresql database are causing me a world of trouble when I go a-querying to create reports. When I try to delete these entries (via phpPgAdmin), I get the error "No unique identifier for this row." There are no duplicate IDs. I've tried updating all the fields. I've tried getting rid of these using the delete button and manual SQL commands. I'm out of ideas. Anyone know hot to give a row a unique identifier so I can get rid of it?

谢谢!

推荐答案

看到这篇文章的答案: PHPpgAdmin :如何删除行而不使用SQL

See the answer to this post: PHPpgAdmin: How delete rows without using SQL.

这篇关于postgresql和django - 没有这个行的唯一标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆