💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## 实体之间的关系 一对一(多对一) lesson和企业是一对一,多对一 一对多 企业和课程1对多 多对多 案例涉及的表: 用户表(实体表) userid (主键) username sex 商品表(实体表) pid (主键) pname pdesc(商品描述) price 订单表(实体表) orderid (主键) ordertime userid totalprice status: 0(待付款) 1(待发货) 2(待收货) 3(待评价) 订单详情表(关系表) id (流水号,主键) orderid pid count price xiaoji(小计) ## 实体关系案例 一对一, 多对一 查询订单,同时显示用户信息 订单表(实体表) orderid (主键) ordertime User user; totalprice status: 0(代付款) 1(待发货)2(待收货) 3(待评价) 一对多 查询用户, 同时显示这个用下的所有订单 多对多 商品和订单的关系, 多对多 https://www.jianshu.com/p/2fdcfbe1cc14