@Banana
2017-08-01 03:18thinkPHP查询求大神帮忙
select d.*,(select count(*) from cmf_course_major where did=d.id) as major_count,(select count(*) from cmf_course_category where did=d.id) as category_count from cmf_course_department这样的查询语句怎么改成Thinkphp那种封装的查询
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 用thinkphp 在网页上实现form表格(假设有10行数据)的增删改查,连接到数据库中 应该怎么写
- 数据库
- php
- 数据
- 2个回答
- thinkphp3.2 对多字段验证,只返回array ,并没有值
- php
- 2个回答
- thinkPHP查询求大神帮忙
- select
- as
- php
- 1个回答
- 微信公众号开发php+mysql
- mysql
- php
- 微信
- 6个回答
- thinkphp关于跨模块调用方法的问题,在线急等
- php
- 1个回答
换一换