在 phpMyAdmin 中,编辑或插入时约束会导致奇怪的下拉菜单
我对一些 MySQL 表字段添加了一些约束。这似乎对 phpMyAdmin 做了一些改变,包括在编辑或插入模式下将受约束的字段显示为下拉框:
这对我来说看起来有点奇怪,好像 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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决这个问题的方法。我需要配置 phpMyAdmin 以显示相关记录的标题/名称。
http://thedesignspace.net/MT2archives/000043.html
现在我看到下拉菜单是按名称排序,然后按 ID 排序:
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: