gpt4 book ai didi

sql - 数据库结构

转载 作者:行者123 更新时间:2023-12-05 01:11:31 25 4
gpt4 key购买 nike

我有以下格式的数据库结构,

科目表

subject_id subject_name
1 HTML
2 Java

章节表

chapter_id chapter_name subject_id
1 Doctype 1
2 Intro to Java 2

教程表

tutorial_id tutorial_name       chapter_id subject_id
1 Intro to doctype 1 1
2 Details of doctype 1 1
3 Intro to JVM 2 2

subject_id 应该在教程表中吗?

最佳答案

不,您可以从章节表中间接获得它。它在教程表中是多余的。

关于sql - 数据库结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18395220/

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