gpt4 book ai didi

php - 当前选择不包含唯一列。网格编辑、复选框、编辑、复制和删除功能不可用

转载 作者:行者123 更新时间:2023-11-30 21:22:17 26 4
gpt4 key购买 nike

我在 phpMyadmin 中收到以下通知

Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.

下面是我在 phpMyadmin 中运行的查询。我试过使用 on 而不是 Using,我也试过删除一些连接。在我使用 INNER JOIN 的那一刻,我收到了通知。

我试图找到解决方案,但它们都涉及为列设置索引或 AI

SELECT    mr.response_id, mr.user_id, mr.topic_id, mr.response,
mt.name AS topic_name, mt.category_id,
mu.username, mc.name AS category_name
FROM mismatch_response AS mr
INNER JOIN mismatch_topic AS mt USING(topic_id)
INNER JOIN mismatch_user AS mu USING(user_id)
INNER JOIN mismatch_category AS mc USING(category_id)

但在所有表中,我都有一个列设置为主键并自动递增。

不知道还能做什么

最佳答案

您的所有表可能都有一列作为主键并自动递增。但是执行上述查询后得到的结果没有任何唯一索引。

所有操作,即编辑、复制和删除都需要唯一索引才能工作,显然您不希望仅删除单个数据行就删除所有数据。

关于php - 当前选择不包含唯一列。网格编辑、复选框、编辑、复制和删除功能不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36702127/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com