在 phpMyAdmin 中,编辑或插入时约束会导致奇怪的下拉菜单

发布于 2024-09-18 16:18:52 字数 241 浏览 3 评论 0原文

我对一些 MySQL 表字段添加了一些约束。这似乎对 phpMyAdmin 做了一些改变,包括在编辑或插入模式下将受约束的字段显示为下拉框:

Screenshot

这对我来说看起来有点奇怪,好像 phpMyAdmin 想要添加标题但没有正确的信息。我的这个假设正确吗?

为什么 ID 从 3 变为 1,然后又回到 3?

I have added some constraints to some MySQL table fields. This seems to change phpMyAdmin a little bit, including constrained fields being presented as drop down boxes in edit or insert mode:

Screenshot

This looks a bit weird to me, as if phpMyAdmin wants to add titles but doesn't have the correct information. Am I correct in this assumption?

And why do the IDs go from 3 to 1, then back up to 3?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

虐人心 2024-09-25 16:18:52

我找到了解决这个问题的方法。我需要配置 phpMyAdmin 以显示相关记录的标题/名称。

http://thedesignspace.net/MT2archives/000043.html

现在我看到下拉菜单是按名称排序,然后按 ID 排序:

Screenshot

I found a solution to this. I needed to configure phpMyAdmin to display related records' titles/names.

http://thedesignspace.net/MT2archives/000043.html

Now I see that the dropdown is ordering by name, then ordering by ID:

Screenshot

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文