多表查询,limit使用

浏览:2499 发布日期:2014/02/24 分类:求助交流 关键字: 多表 查询
用tp在进行多表查询的时候,我想使用limit限制在其中一个表中,如何使用。
如:t1,t2,t3,
select t1.name from t1,t2,t3
where t1.id=t2.cid
and t2.id=t3.uid
and t3.fid=5
其中t3.fid不是唯一的,我现在只想要t3.fid一条即可,
在tp的多表查询怎么用,不使用sql语句
最佳答案
评论( 相关
后面还有条评论,点击查看>>