gpt4 book ai didi

sql - 如何设计公交路线数据库?

转载 作者:搜寻专家 更新时间:2023-10-30 19:57:46 25 4
gpt4 key购买 nike

<分区>

我想以这样的方式创建一个公交路线数据库,它给出的结果如下:

输入: 来源 = station-X , Destination = station-Y

输出:各种总线名称/编号。经过Station-X和Station-Y

到目前为止我有:巴士(bus_no),巴士路线()

    Bus(bus_name/no.)
id | bus_no
1 | 33
2 | 33A

Bus_Route(route_id,bus_no)
id | route_id | bus_no
1 | route-A | 33
2 | route-B | 33A

我如何继续存储各个路线的车站名称。我不是数据库专家,所以任何帮助都是有值(value)的。提前致谢。

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