dpz1983 2011-10-05 18:56
浏览 87
已采纳

如何在PHPMyAdmin中启用关系?

I know very little about MySQL, and PHPMyAdmin, I have am going to make a quiz program in PHP, it will allow the user(s) to create, save and do multiple choice quizzes.

The way in which the tables are currently structured (I'm open to suggestions, if this structure sounds rubbish:) ) I've got 3 tables, Quizzes containing:

 ID, quiz title and quiz_ID, 

Answers containing:

 ID, question_ID, Answer1, Answer2, Answer3, Answer4 and correct answer

Questions containing:

 ID, and the question.

I have absolutle no idea at all where to start in creating relationships to join ip various ID's. I am using PHPMyAdmin, and have looked around, and it says the relationship reature is disabled. So I think the first thing I need to do is enable this feature.

I would be so grateful for any help at all, and please explain it clearly because I'm pretty thick at all this :p

Thanks again in advance :) xx

  • 写回答

2条回答 默认 最新

  • doupao6011 2011-10-05 19:03
    关注

    In the structure view of a table you have a link just below the list saying "Relation view".

    Also make sure you have indexed the field you want to make relation on

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 X轴为分离变量(因子变量),如何控制X轴每个分类变量的长度。
  • ¥30 求给定范围的全体素数p的(p-2)的连乘积
  • ¥15 VFP如何使用阿里TTS实现文字转语音?
  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计