在 Phpmyadmin 中插入 table 中的编辑值不起作用
In Phpmyadmin edit values inserted in table is not working
如果您在图片中看到,我没有任何选项可以编辑 table 中插入的值。我想在这里编辑 ex , 'test_input' 列作为唯一的条目。为什么会这样,我在 Localhost 上并且新安装了 xampp.
这是因为您的 table 中没有 PRIMARY
密钥。
添加 id
字段并将其设置为 table 的 PRIMARY
键(或选择现有字段之一,例如 problem_id
,但它必须是 UNIQUE
).
这正是显示在您附加的 phpMyAdmin 屏幕截图顶部的通知警告您:
Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.
如果您在图片中看到,我没有任何选项可以编辑 table 中插入的值。我想在这里编辑 ex , 'test_input' 列作为唯一的条目。为什么会这样,我在 Localhost 上并且新安装了 xampp.
这是因为您的 table 中没有 PRIMARY
密钥。
添加 id
字段并将其设置为 table 的 PRIMARY
键(或选择现有字段之一,例如 problem_id
,但它必须是 UNIQUE
).
这正是显示在您附加的 phpMyAdmin 屏幕截图顶部的通知警告您:
Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.