会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
AutoCoad
博客园
首页
博问
闪存
新随笔
订阅
管理
2018年6月30日
thinkphp 多对多表查询
摘要: 1.表 班级表classes 学生表student 中间表classes_students 2。使用模型关联查询 新建模型 Classes在里面添加代码 ClassesStudent中间表模型,可以不写什么 Student在里面添加代码 获取student所在的历史班级 $classes=Stude
阅读全文
posted @ 2018-06-30 14:34 ljstu
阅读(444)
评论(0)
推荐(0)